您的位置:程序门 -> java -> 框架、开源



why?????为什么方法名,路径都对了,jsp页面确空白   myeclipse控制台提示   methodname=null   谢谢~~~~


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


why?????为什么方法名,路径都对了,jsp页面确空白 myeclipse控制台提示 methodname=null 谢谢~~~~
发表于: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"> 密&nbsp;&nbsp;码 </td>
                                        <td> <html:password   property="password"   /> </td>
                                    </tr>
                                </table> <br>
                       
                                      <html:submit   property="submit2"     value="进入"/> &nbsp;&nbsp;&nbsp;
                                <html:reset   property="reset"     value="重置"/> &nbsp;&nbsp;
                  </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?????
发表于:2008-01-18 17:05:571楼 得分:0
我也没找到你说的   methodname   在哪里??
发表于:2008-01-19 07:20:052楼 得分:0
楼住应该是你的配制文件少拉input*****.jsp"这一项吧


快速检索

最新资讯
热门点击