Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reading checkbox combobox values

 
Aditi agarwal
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 182
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Anbarasu Aladiyan
Ranch Hand
Posts: 182
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have written DB connectivity code in JSP
 
Aditi agarwal
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 182
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no issues. you are welcome
 
Aditi agarwal
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one give me a sample code for that bcause i have tried everythng but cannot understand full functionality of any code plsss
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic