File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Retain drop down values in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

Retain drop down values in JSP

kasi Raju

Joined: Jun 07, 2011
Posts: 8
Hi Every one,

Sorry to post this in different thread but my problem was not solved

I want to retain drop down values in JSP which are in session.
here is my JSP page

<tr><td align="center"><select name="titles" size="1" >
<c:forEach items="${sessionScope.pNames}" var="current" >
<option value="${current.c1}" >${current.c2}</option>

<td align="center"><input type="button" value="modify" onclick="submit(this.form)"/></td>

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63837

Please continue the discussion in the original topic.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Retain drop down values in JSP
It's not a secret anymore!