| 发表于:2008-01-18 10:24:14 楼主 |
jsp页面的处理方法就是不能进入action,当点击 确定 后jsp页面空白 myeclipse控制台提示 methodname=null jsp页面代码: function checkform(){ if(document.form[0].account.value=""){ alert("请输入您的用户名!"); return false; } <html:form action="/login.do?action=checkaccount" onsubmit="return checkform();"> <table width="239" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="81" height="30"> 用户名 </td> <td width="291"> <html:text property="account" /> </td> </tr> <tr> <td height="30"> 密 码 </td> <td> <html:password property="password" /> </td> </tr> </table> <br> <html:submit property="submit2" value="进入"/> <html:reset property="reset" value="重置"/> </html:form> struts-config。xml: <action attribute="talkform" name="talkform" path="/login" scope="request" type="com.struts.action.talkaction"> <forward name="checklogin" path="/usertalk/checklogin.jsp" /> </action> 为什么onsubmit也不触发???到底是why????? |
|
|
|
|