Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to pass the drop down list value in session onChange in jsp

843840Apr 3 2008 — edited Apr 3 2008
how to pass the drop down list value in session onChange in jsp


i am accessing db fields and putting them in a drop down list as shown below

<select name="subject">
<%
while(rs2.next())
{
cat=rs2.getString(1);
%><option value="<%=cat%>"><%=cat%></option><%
}%></select>

now i want to put the selected option value (onChange) in sessions to be accessed in next jsp page
how to do that

Cheers & Regards
sweety
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 1 2008
Added on Apr 3 2008
3 comments
1,776 views