aspose file tools
The moose likes Struts and the fly likes 'type' attribute for [html:form] Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark " Watch " New topic
Author

'type' attribute for [html:form]

Alec Lee
Ranch Hand

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

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: 'type' attribute for [html:form]
 
Similar Threads
HI please help to solve this problem
how to specify formbean in struts 1.2.9
I am getting following error
struts 1.3.5 tags-html attributes syntax error
struts form bean