aspose file tools*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: radion button input in form