File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " Watch " New topic

'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

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:
subject: 'type' attribute for [html:form]
It's not a secret anymore!