Using JavaBeans, JSP and Servlets to create a Web App
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   J_Cooke
Posted On:   Wednesday, December 14, 2005 10:25 PM

I am using a servlet to connect to a jsp that uses HTML to create two drop down boxes. After the user chooses an option in each of the drop down boxes, the page is supposed to send the information to a servlet that will connect to a database and retrieve information based on the value of the selection that the user chose.

Does anyone know how to retrieve the value of the option chosen by the user so that it can be stored in the JavaBean? I've seen lots of ways to do it in Javascript, but can anyone do it in Java? Thanks.

Re: Using JavaBeans, JSP and Servlets to create a Web App

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, December 24, 2005 06:18 PM

request.getParameter("nameOfSelect")



(the option value gets submitted as the value of the parameter corresponding to the enclosing "select")
About | Sitemap | Contact