jsp:
    <html:form method="post" action="/userdb">
     <html:text property="username"></html:text><br />
     <html:password property="password"></html:password><br />
     <html:text property="123"></html:text>
     <html:submit></html:submit>
    </html:form>
报错:
org.apache.jasper.JasperException: Exception in JSP: /index.jsp:2320:     <html:form method="post" action="/userdb">
21:      <html:text property="username"></html:text><br />
22:      <html:password property="password"></html:password><br />
23:      <html:text property="123"></html:text>
24:      <html:submit></html:submit>
25:     </html:form>
26:   </body>
如果把<html:text property="123"></html:text>去掉,就正常了,太奇怪了,我这行没错啊

解决方案 »

  1.   

    property="123" 你换成 "abc"看看
      

  2.   

    <html:form>中对应的表单项在action="/userdb"的action中使用actionForm中
    得有对应的属性吧
      

  3.   


    <html:text property="123"> </html:text> property对应的是form 里边的值 你form里有123这个字符串吗要想在文本框写入值的话 可以用value="123"
      

  4.   

    <html:text property="123"> </html:text> property对应的是form(JAVA类) 里边的属性