October 18th, 2002, 05:46 PM
I am using some JSP code in a web page which accesses a JavaBean and is returned some value.
I need to be able to get the selected value from a select (list) and pass this to the JavaBean which will return a Vector of Objects I can use to display.
The problem is getting the selected value from the list to the JSP code which calls the bean.
the code looks something like this:
October 18th, 2002, 08:08 PM
You're getting the value from the form, yes? Form values are accessible from the request object, referenced by the name attribute. So a select list with name="department" would be accessed with:
request.getParameter( "department" );