日期:2014-05-20 浏览次数:20671 次
<package name="account" namespace="/account" extends="basic"> <action name="register" class="com.questionvsanswer.action.AccountAction" method="register"> <result name="formal">/WEB-INF/register.jsp</result> <result>/WEB-INF/index.jsp</result> </action> </package>
<package name="account" namespace="/" extends="basic"> <action name="account" class="com.questionvsanswer.action.AccountAction" method="register"> <result name="formal">/WEB-INF/register.jsp</result> <result>/WEB-INF/index.jsp</result> </action> </package>
------解决方案--------------------
楼主你的jsp文件最好不要放在WEB-INF下面。
------解决方案--------------------
<package name="account" namespace="/" extends="basic">
<action name="account" class="com.questionvsanswer.action.AccountAction" method="register"> <result name="formal">/WEB-INF/register.jsp</result>
<result>index.jsp</result> </action>
</package>