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 How to submit a form with out a name in javascript 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 "How to submit a form with out a name in javascript" Watch "How to submit a form with out a name in javascript" New topic
Author

How to submit a form with out a name in javascript

Bushra Binte
Ranch Hand

Joined: Nov 07, 2006
Posts: 60
hi,I am using struts 1.2.9 struts-html.tld.From this tld i am using the 'form' tag.
This tag doesnot support 'name' attribute.How to submit the form after validating the data using javascript.any idea
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Use the "styleId" attribute and get the form by ID rather than by name?
Bushra Binte
Ranch Hand

Joined: Nov 07, 2006
Posts: 60
thanks David.Also we can use the same form name that is used in the struts-config.xml file in javascript and it works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to submit a form with out a name in javascript
 
Similar Threads
Issue with multiple form beans
Struts 2 - AJAX problem using optiontransferselect
html:select : how to/ can u use onselect()??
Problem in submitting the form
Need help forcing javascript form to post from java program