aspose file tools*
The moose likes Servlets and the fly likes how to retrive a value from a check box  on one page to another page containing a com Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to retrive a value from a check box  on one page to another page containing a com" Watch "how to retrive a value from a check box  on one page to another page containing a com" New topic
Author

how to retrive a value from a check box on one page to another page containing a com

saurabh panwar
Greenhorn

Joined: Feb 19, 2001
Posts: 5
i have a check box on one page and combo box on another. When i click on a check box the value should be shown in the combo box.
i don't want to use the text field which is hidden.!!
thank u!!
Arunagiri, Shanmugham
Ranch Hand

Joined: Jan 23, 2001
Posts: 46
Hi,
Pass a index value in the check box value property. When u click submit, only the check box which are checked will go as a parameter to a servlet. In this servlet add the values from the check box to Session object or Cookies. Then extract the value from the Session object or cookie in the next page which is generated by redirecting from first page.
Hope it would help u.
Arun


Sun Certified Programmer for Java2 Platform
sameera k
Greenhorn

Joined: Oct 27, 2000
Posts: 5
Well u put the value which u want to be displayed in the 'value' field of the checkbox and when u have to get a parameter in the next page u get it and populate the combo box with it
even if there are multiple checkboxes give the same name to everyone only the value will differ .Then on the next page using getParameter value put those value in an array and then populate the combobox.
I dont think there is any need for any hidden parameters or adding those parameters to sessions


sameera kocharekar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to retrive a value from a check box on one page to another page containing a com
 
Similar Threads
Bacjk button and combo problems
problem with extracting values from a combo box.....
Enable combo box when check box is checked
How to load data in a combo based on user selection on another combo
Combo Box