This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes remove name and OnSubmit in s:form tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "remove name and OnSubmit in s:form tag" Watch "remove name and OnSubmit in s:form tag" New topic
Author

remove name and OnSubmit in s:form tag

Mike Nason
Greenhorn

Joined: Apr 19, 2006
Posts: 20
We are doing a we site for mobile devices and when using s:form it includes name="sendMail" onsubmit="return true;" attributes there.

We don't need these, how can I turn rendering these tags off?

We use <s:form action="sendMail" method="get" theme="simple" namespace="/">

Wanna code??
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Change the template, if it's *really* important, but I don't know why it would be.

Personally, if I were doing a mobile version of a site I'd create a mobile theme.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: remove name and OnSubmit in s:form tag
 
Similar Threads
Unable to get the Attribute value
Not include webapp context path
jsp
How can i insert Reset and Submit buttons in same row in struts2?
Action code reuse