论坛首页 Java企业应用论坛

ralasafe与SSH结合开发(一)

浏览 2812 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2011-08-18  
SSH的集成网上一大堆,ralasafe下载下来后,按下面的结构来配置ralasafe。




Web.xml

<!-- ralasafe -->
<servlet>
<servlet-name>ralasafe/RalasafeService</servlet-name>
<servlet-class>org.ralasafe.ui.server.RalasafeServiceImpl</servlet-class>
</servlet>
<servlet>
<servlet-name>ralasafe/DesignerServlet</servlet-name>
<servlet-class>org.ralasafe.servlet.DesignerServlet</servlet-class>
</servlet>

<servlet>
<servlet-name>ralasafe/UserTypeMngServlet</servlet-name>
<servlet-class>org.ralasafe.servlet.UserTypeMngServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>ralasafe/UserTypeInstallServlet</servlet-name>
<servlet-class>org.ralasafe.servlet.UserTypeInstallServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>ralasafe/StartupServlet</servlet-name>
<servlet-class>org.ralasafe.servlet.StartupServlet</servlet-class>
<init-param>
<param-name>repositoryDir</param-name>
<param-value>E:/workspace/framework/Web/xml/</param-value>
</init-param>
<init-param>
<param-name>secured</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>4</load-on-startup>
</servlet>


<servlet-mapping>
<servlet-name>ralasafe/RalasafeService</servlet-name>
<url-pattern>/ralasafe/RalasafeService</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ralasafe/DesignerServlet</servlet-name>
<url-pattern>/ralasafe/designer</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ralasafe/UserTypeMngServlet</servlet-name>
<url-pattern>/ralasafe/userTypeMng</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ralasafe/UserTypeInstallServlet</servlet-name>
<url-pattern>/ralasafe/userTypeInstall</url-pattern>
</servlet-mapping>


注意此处XML文件夹路径可以使用相对路径,同时也要避免使用中文路径和空格的出现。
例如: ../webapps/gmis/xml/
  • 大小: 30.2 KB
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics