wood burning stoves 2.0*
The moose likes Servlets and the fly likes drop down boxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "drop down boxes" Watch "drop down boxes" New topic
Author

drop down boxes

kevin schmidt
Ranch Hand

Joined: Aug 24, 2001
Posts: 85
Hi,
I have a JSP page with a form. The form contains three drop down boxes. Now the page output depends on what is selected from the three drop down menus. I want the page to tell which ones have been selected, so the output is formatted properly. TIA.
Kevin
Dave Soto
Ranch Hand

Joined: Sep 15, 2001
Posts: 55
OK, so what exactly is your question?
kevin schmidt
Ranch Hand

Joined: Aug 24, 2001
Posts: 85
How do I tell which ones have been selected?
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

umm... they're part of a form, right?

request.getParameter("nameOfDropDownOne") comes to mind
kevin schmidt
Ranch Hand

Joined: Aug 24, 2001
Posts: 85
yes, i've been using the request.getParameter, but not very good with it. How do I check for null or empty string?
ziqiang wu
Greenhorn

Joined: Jun 18, 2001
Posts: 25
if(request.getParameter("dropDownBoxName")!=null)
action....;
Hope it is helpful.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: drop down boxes
 
Similar Threads
How to get values from dropdown Select box in JSP
JSP and drop-down boxes
form duplication
Dependent drop down boxes with javascript
Drop Down validation