File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 JavaScript Promises Essentials this week in the JavaScript 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