This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes radion button input in form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "radion button input in form" Watch "radion button input in form" New topic
Author

radion button input in form

Muhammad Usman
Greenhorn

Joined: Nov 18, 2001
Posts: 29
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.


an student of Operation Badar ( a educational movement in Pakistan).
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Use javascript to dispatch:

/Rene


Regards, Rene Larsen
Dropbox Invite
Stu Glassman
Ranch Hand

Joined: Jul 01, 2002
Posts: 91
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.
 
jQuery in Action, 2nd edition
 
subject: radion button input in form
 
Similar Threads
checkbox
handle radio buttons in servlet
servlets+screept
Delegating requestes to different servlets based on the submission.
checkbox