Author
drop down boxes
kevin schmidt
Ranch Hand
Joined: Aug 24, 2001
Posts: 85
posted Sep 24, 2001 07:52:00
0
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
posted Sep 24, 2001 12:34:00
0
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
posted Sep 24, 2001 13:04:00
0
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
posted Sep 24, 2001 13:23:00
0
if(request.getParameter("dropDownBoxName")!=null) action....; Hope it is helpful.
subject: drop down boxes