今天遇到一个怪问题,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 type=text/javascript> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script><script type="text/javascript"> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>