我用的是ssh框架,用spring来控制struts
struts-config.xml中<action>中的type="org.springframework.web.struts.DelegatingActionProxy">想在登录index.jsp的时候先到art.do中去执行一些查询操作,用的方法是在web.xml中把
<welcome-file-list>
<welcome-file>art.do?method=toIndex</welcome-file>
</welcome-file-list>
但是在art.do的toIndex中写了System.out.print做测试显示没执行到这个方法,编译很正常,没有报错现象,不知道用spring做控制的struts中的做法,望解答
struts-config.xml中<action>中的type="org.springframework.web.struts.DelegatingActionProxy">想在登录index.jsp的时候先到art.do中去执行一些查询操作,用的方法是在web.xml中把
<welcome-file-list>
<welcome-file>art.do?method=toIndex</welcome-file>
</welcome-file-list>
但是在art.do的toIndex中写了System.out.print做测试显示没执行到这个方法,编译很正常,没有报错现象,不知道用spring做控制的struts中的做法,望解答
建议你在一个jsp中做转向.
http://topic.csdn.net/u/20090701/14/1928da70-14e6-475a-bdff-83c87a78bdb6.html
你的index.jsp是存在的,就用不到这个了