Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

radion button input in form

 
Muhammad Usman
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello to all,
i m just a beginner in servlets.
i have a very basic problem. i am practicing to make a shoping cart.
i have made a servlet named Welcome .In which i included a from with three radio buttons lime
. Garment
. Medicine
. Books
and
Submit button at bottom.
i have made three servlets i.e Garment , Medicine and Books .
How i could get to required servlet if i press the submit button after selecting any radio buttons.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use javascript to dispatch:

/Rene
 
Stu Glassman
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another way is to create another servlet, we'll call it ActionServlet. The ActionServlet can read the value of the radio button and then redirect the user to the appropriate servlet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic