Attribute onSubmit invalid for tag form according to TLD

HTTP Status 500 -


type Exception report

message

descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /fg_baoming.jsp(45,1) Attribute onSubmit invalid for tag form according to TLD
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
	org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
	org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
	org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1235)
	org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:846)
	org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
	org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
	org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
	org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:865)
	org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
	org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
	org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
	org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
	org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
	org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
	org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1763)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

noteThe full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.

 

遇到该错误,现在还没有解决。。。

原文如下:
    <td valign="top " align="center">
 <br  />
 <html:form   action="studentAction.do?action=0"  onsubmit="return checkEmpty(studentForm)">
 
   <table width="659" border="2" align="center" cellpadding="2" cellspacing="2">
        <tr>
          <td width="227" height="70" align="center" valign="middle"><div   align="center "    style="height:30; font-size:24px; color: #0000FF; text-align: center;" >学 &nbsp;&nbsp;&nbsp;号</div></td>
          <td width="410">
          <!input name="sno" type="text" id="sno"   style="height:35; width:400; font-size:24px" />        
     <div align="left">
             <html:text property="sno"></html:text>
          </div>
     </td>
        </tr>
        <tr>
          <td height="70" align="center" valign="middle"><div   align="center "    style="height:30; font-size:24px; color: #0000FF; text-align: center;" >姓 &nbsp;&nbsp;&nbsp;名</div></td>
          <td><label>
          <!input name="sname" type="text" id="sname"  style="height:35; width:400; font-size:24px" />
          </label>
    <div align="left">
              <html:text property="sname"></html:text>
          </div>
    </td>
        </tr>
        <tr>
          <td height="70" align="center" valign="middle"><div   align="center "    style="height:30; font-size:24px; color: #0000FF; text-align: center;" >班 &nbsp;&nbsp;&nbsp;级</div></td>
          <td><label>
          <!input name="sclass" type="text" id="sclass" style="height:35; width:400; font-size:24px" />
          </label>
    <div align="left">
              <html:text property="sclass"></html:text>
          </div>
    </td>
        </tr>
        <tr>
          <td height="70" align="center" valign="middle"><div   align="center "    style="height:30; font-size:24px; color: #0000FF; text-align: center;" >学 &nbsp;&nbsp;&nbsp;院</div></td>
          <td><label>
          <!input name="sdept" type="text" id="sdept"  style="height:35; width:400; font-size:24px" />
          </label>
    <div align="left">
              <html:text property="sdept"></html:text>
          </div>
    </td>
        </tr>
      </table>
        <table  align="center"width="659" height="50" border="1" cellpadding="1" cellspacing="0">
          <tr>
            <td align="center"><p>&nbsp;
                </p>
              <p align="center">
  <input   type="image" class="input1"  src="images/fg_right07.jpg" width="120" height="40" />
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="#" onClick="javascript:history.go(-1)"><img src="images/fg_right08.jpg" width="110" height="40" /></a></p>
            <p align="center">&nbsp;</p></td>
          </tr>
        </table>

    </html:form>

解决了:onSubmit 中的S 需要小写。
阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页