Bookmark Topic Watch Topic
  • New Topic

slection of radio button

 
rammie singh
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have a jsp page...which shows a list of employee fetched from databse.
now user has a option to select any one of employee through radio button.

i want that selection to be passed to a servlet class. how can we do that??



regards
thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
That's all just basic HTML. The value of the checked radio button will be passed as a request parameter using the name of the control when the form is submitted.
 
rammie singh
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Report post to moderator
can any body please show it by example

i am using javascript in my code to pick up the selected radio button




i am using session here ...but some one said that i can't use session in my javascript.

can anybody tell me what is the alternative.

regards
thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is the same invalid JavaScript code that you posted in your first topic.

This topic is closed; please continue any discussion in the original post.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!