http://localhost:8080/struts1/updateUser.jsp?account=2623422${account}JSP无法取参数!!!!

解决方案 »

  1.   

    如何转换成LONG型 用EL表达式
      

  2.   

    <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)