wood burning stoves 2.0*
The moose likes Struts and the fly likes 'type' attribute for [html:form] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " Watch " New topic
Author

'type' attribute for [html:form]

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
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

Joined: Feb 05, 2003
Posts: 4727

It now only uses the type attribute specified in the ActionMappings of struts-config.xml.

Just remove the attribute from your html:form tag.


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 'type' attribute for [html:form]