Two Laptop Bag*
The moose likes Struts and the fly likes html:form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:form" Watch "html:form" New topic


rahul karwal
Ranch Hand

Joined: Oct 26, 2001
Posts: 73
i have a form which has about 20 checkbox and i want to provide one checkbox for "Selecting ALL" and one checkbox to "UNSELECt all checkbox"
i am using struts tags, the problem i am facing is currntly html:form doesnot have an attribute for "name" like we have in html tag form"name"
as i can reference the checkbox in javascript only with form name? can any one help me with this issue? is there any other way of doing it? a sample code would relly help?

Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30123

html:form gets the name from the struts config file. You can check what the form name is for the specified action. Alternatively, you can run the application and check in the HTML.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
rahul karwal
Ranch Hand

Joined: Oct 26, 2001
Posts: 73
got it
I agree. Here's the link:
subject: html:form
Similar Threads
How to save html form into a xml file?
Actionform not populating JSP
Alternative for html:multibox
Combining two Forms
Multipage form validation