错误的 我用过的http://localhost:8080/struts1/updateUser.jsp?account=432421423<html:form action="update.do"> 账号:<html:text property="account" value="<%=reqeust.getParameter("account")%>" ></html:text><br> 用户名:<html:text property="username"></html:text><html:errors property="username"/><br> <html:submit>确定</html:submit> </html:form>org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 29 in the jsp file: /updateUser.jsp
<html:errors property="updateFail"/> <html:form action="update.do"> 账号:<html:text property="account" value="<%=new Long(request.getParameter("account")) %>"></html:text><br> 用户名:<html:text property="username"></html:text><html:errors property="username"/><br> <html:submit>确定</html:submit> </html:form> 为什么报错 An error occurred at line: 29 in the jsp file: /updateUser.jsp The method setValue(String) in the type BaseInputTag is not applicable for the arguments (Long)
<%=reqeust.getParameter("method")%>
账号:<html:text property="account" value="<%=reqeust.getParameter("account")%>" ></html:text><br>
用户名:<html:text property="username"></html:text><html:errors property="username"/><br>
<html:submit>确定</html:submit>
</html:form>org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 29 in the jsp file: /updateUser.jsp
<html:form action="update.do">
账号:<html:text property="account" value="<%=new Long(request.getParameter("account")) %>"></html:text><br>
用户名:<html:text property="username"></html:text><html:errors property="username"/><br>
<html:submit>确定</html:submit>
</html:form>
为什么报错
An error occurred at line: 29 in the jsp file: /updateUser.jsp
The method setValue(String) in the type BaseInputTag is not applicable for the arguments (Long)
request参数应该单引号