Two Laptop Bag*
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
Author

Retain drop down values in JSP

kasi Raju
Greenhorn

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>
</c:forEach>
</select></td></tr>

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

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Please continue the discussion in the original topic.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Retain drop down values in JSP
 
Similar Threads
Jsp Array Iteration
unable to do validation for select in struts2
Combo box problem in jsp
Redirecting a page
setting the selected option in a select element