JSP Forms
Hi. I'm using Struts for some application. I have a dropdown list on a form, which I populate with data from my DB in this manner:
<html:select property="myprop">
<html:options collection="seats" property="number" labelProperty="number"/>
</html:select>
I would like to print data about the selected item(from the list) on the same form(near the list). How can I achive this?
Thanx.
[441 byte] By [
JustNamea] at [2007-11-27 7:05:50]

Hi,
After selection you can get the value as the number (Since you have given the property of the drop down as number).
Near to the drop down write the code like this
<%
if(request.getParameter("number")!=null)
{
out.println("Selected Item:"+request.getParameter("number"));
}
%>
If you have any queries please let me know.
Thanks & Regards
Santhosh Reddy Mandadi.