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>去掉,就正常了,太奇怪了,我这行没错啊
<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>去掉,就正常了,太奇怪了,我这行没错啊
得有对应的属性吧
<html:text property="123"> </html:text> property对应的是form 里边的值 你form里有123这个字符串吗要想在文本框写入值的话 可以用value="123"