struts多模块配置:再说Struts多模块开发来源: 发布时间:星期四, 2009年3月19日 浏览:0次 评论:0
这两天清闲研究下Struts多模块,发现网上有不少资料,感觉有些不太详细,顾写此文章供大家参考:
struts多模块开发个人整理总结 1,WEB-INF包含模块目录 路径 WEB-INF/man/struts-config-man.xml web.xml 配置 <init-param> <param-name>config/man</param-name> <param-value>/WEB-INF/man/struts-config-man.xml</param-value> </init-param> 注意 param-value 目录必须写否则无法部署 访问思路方法 A,本模块访问 <html:link module="/man" action="/Welcome" > Demo </html:link> B,父模块访问 <html:link action="./Welcome"> 转到主页面 </html:link> 2,模块名称和原始文件 ![]() 路径 WEB-INF/address/struts-config.xml 访问思路方法 其余思路方法 ![]() 其他模块访问 此条件是不在本模块内部 <html:link module="/address" action="/Welcome" > Demo2 </html:link> 本模块访问 <html:link action="man/Welcome" > Demo5 </html:link> <html:link action="/man/Welcome" > Demo6 </html:link> 备注 action默认 ![]() 顾此只能识别path内部.do ![]() action参数为STRUTS-CONFIG中 ![]() module参数值为模块名和WEB.XML对应 action也可以将模块名称加在.DO文件前面,这样免去module参数 TAG: Struts STRUTS ="xspace-totlerecord">2="xspace-totlepages">1/2="xspace-current">12> 0
相关文章读者评论发表评论 |