aspose file tools*
The moose likes Struts and the fly likes reading checkbox  combobox values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "reading checkbox  combobox values" Watch "reading checkbox  combobox values" New topic
Author

reading checkbox combobox values

Aditi agarwal
Ranch Hand

Joined: Feb 23, 2011
Posts: 225
hi

i am designing a web portal

i need that what checkbox & combo box are selected they hould be shown on a new page & should also be inserted in database

I have created only a single jsp file which is coded as

Anbarasu Aladiyan
Ranch Hand

Joined: Jun 02, 2009
Posts: 182

For combobox, you can set the name, id attribute values as "someconstant"+id_from_db.
For checkbox, you can name as same for all checkboxes and set value attribute as id_from_dn. So you can get the selected checkbox in the "Array" form, which will have all the selected checkboxes values (ie.. ids_from_db).


A.A.Anbarasu
Anbarasu Aladiyan
Ranch Hand

Joined: Jun 02, 2009
Posts: 182

You have written DB connectivity code in JSP
Aditi agarwal
Ranch Hand

Joined: Feb 23, 2011
Posts: 225
thanks Anbarasu

for your reply i know i have written connectivity code in JSP bcause i need it

now i think i can proceed further
thank you
Anbarasu Aladiyan
Ranch Hand

Joined: Jun 02, 2009
Posts: 182

no issues. you are welcome
Aditi agarwal
Ranch Hand

Joined: Feb 23, 2011
Posts: 225
can any one give me a sample code for that bcause i have tried everythng but cannot understand full functionality of any code plsss
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: reading checkbox combobox values