今天遇到一个怪问题,Struts框架设置好后,运行发现进不了action,一步步查找,终于找到了问题所在,于是找到一个临时解决的办法:
Struts-config.xml中:
<action-mappings >
<action attribute="loginForm" parameter="status" name="loginForm" path="/main/login" input="/main/login.jsp" validate="false"
scope="request" type="com.mprc.stock.struts.action.LoginAction">
<forward name="success" path="/main/success.jsp"></forward>
<forward name="failure" path="/main/failure.jsp"></forward>
</action>
</action-mappings>
配置文件中,validate默认是true,改成false就OK啦!
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Struts框架配置问题解决
本文解决了Struts框架中无法进入action的问题。通过调整Struts-config.xml中的validate属性为false,成功解决了该问题。
3908

被折叠的 条评论
为什么被折叠?



