关于SwitchAction的使用方法
我在web.xml中加入了
<init-param>
<param-name>config/user</param-name>
<param-value>/WEB-INF/struts-config-User.xml</param-value>
</init-param>
后在struts-config.xml中写入
<action-mappings>
<action path="/DoSwitch"
type="org.apache.struts.actions.SwitchAction">
</action>
</action-mapping>
又在struts-config-user.xml中写入
<action-mappings>
<action path="/modulA"
forward="/index.jsp">
</action>
</action-mapping>
最后在地址篮中输入
http://localhost:8089/xx/DoSwitch.do?prefix=user&page=modulA
为什么不可以,帮我看看好吗 ?谢谢!!