wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: 'type' attribute for [html:form]
 
Similar Threads
struts 1.3.5 tags-html attributes syntax error
I am getting following error
how to specify formbean in struts 1.2.9
HI please help to solve this problem
struts form bean