wood burning stoves 2.0*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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