Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

html:form  RSS feed

 
rahul karwal
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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?

thanks
aziz
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37393
531
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aziz,
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.
 
rahul karwal
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
got it
thanks
aziz
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!