Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

'type' attribute for [html:form]

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the 'type' attribute for <html:form> still supported in Struts 1.2? I got this error with the jsp containing <html:form>

org.apache.jasper.JasperException: /index.jsp(6,0) Attribute type invalid for tag form according to TLD


I looked thru the new struts-html.tld and found that there is no definition for 'type' attribute under form tag! If 'type' is not supported/required, what should we put in?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It now only uses the type attribute specified in the ActionMappings of struts-config.xml.

Just remove the attribute from your html:form tag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic