<html:form name="register" action="/register" method="">我这样写的,,出错啊javax.servlet.ServletException: Must specify type attribute if name is specified
怎么办

解决方案 »

  1.   

    我的意思是让html:form有一个名字,,,,好让我的JS代码可以找到他,,
      

  2.   

    name就用你在<action name="">中定义的名字即可
      

  3.   

    用了action就不要用name了。name:  Deprecated。 Use the action attribute instead
    type:  DeprecatedUse the action attribute instead.
    用了action之后,这些都在xml文件中配置了
      

  4.   

    那怎么办?我的意思就是想找到html:form中一个text,,用JS怎么能访问,感谢