
January 29th, 2001, 05:09 PM
|
 |
film at 11
|
|
Join Date: Aug 2000
Location: Portland, OR
Posts: 413
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
If you have a dropdown combo box called "generation_type", you can access the choice the user made in the servlet that handles the post/get request by:
String gen_type = request.getParameter("generation_type");
This will help you out (check out the javax.servlet.http package, which contains reference material for the HttpServlet class and HttpServletRequest interface):
http://java.sun.com/products/servle...adoc/index.html
I'm not sure what you mean by the second part of your question, but I think it's this: If i have a hidden value like <input type="hidden" name="hid_val"...>, then you get the value the same way as above:
String hiddenval = request.getParameter("hid_val");
This is all assuming, of course, that you named the HttpServletRequest object "request" in your doGet() or doPost() method.
|