Topic: 我们项目在开发时碰到一个问题,盼帮助

  Print this page

1.我们项目在开发时碰到一个问题,盼帮助 Copy to clipboard
Posted by: brooder_lw
Posted on: 2004-07-09 09:14

用struts开发时,随着项目的进度,strutsconfig.xml就会越来越大,导致维护难度加大,有没有什么办法可以将strutsconfig.xml分为几个文件加载,这样子就可以按照不同的业务模块来做strutsconfig.xml

2.Re:我们项目在开发时碰到一个问题,盼帮助 [Re: brooder_lw] Copy to clipboard
Posted by: tier3
Posted on: 2004-07-09 09:16

struts 1.1以后的版本好象有一个module或者sub Application的概念可以做这个。

3.Re:我们项目在开发时碰到一个问题,盼帮助 [Re: brooder_lw] Copy to clipboard
Posted by: brooder_lw
Posted on: 2004-07-09 10:07

谢谢楼上的,请问有无这方面的资料或者是否成功过?

4.Re:我们项目在开发时碰到一个问题,盼帮助 [Re: brooder_lw] Copy to clipboard
Posted by: popwave
Posted on: 2004-07-12 12:43

在web.xml中作如下设置,就可以同时使用struts-config.xml和data-sources.xml进行配置

<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles-def.xml</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml,/WEB-INF/data-sources.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>

5.Re:我们项目在开发时碰到一个问题,盼帮助 [Re: brooder_lw] Copy to clipboard
Posted by: kavenmo
Posted on: 2004-09-11 08:31

用spring吧

6.Re:我们项目在开发时碰到一个问题,盼帮助 [Re: brooder_lw] Copy to clipboard
Posted by: didongusa
Posted on: 2004-09-11 19:52

How big your struts applications.

Are you using over 100 actions?

7.Re:我们项目在开发时碰到一个问题,盼帮助 [Re: didongusa] Copy to clipboard
Posted by: nothing
Posted on: 2004-09-11 20:14

use struts 1.1

8.Re:我们项目在开发时碰到一个问题,盼帮助 [Re: brooder_lw] Copy to clipboard
Posted by: NoLimited
Posted on: 2004-09-13 13:22

好大的项目,其实你可以做一个管理XML文件的工具,在工具里显示出分类,不就行了


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923