Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 8th, 2007, 03:23 AM
Registered User
 
Join Date: May 2007
Location: Calicut, Kerala, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default jsp

How I can Preserve the selected value of the combobox after refresh the page/return from sever side code?

help me................

james
Reply With Quote
  #2 (permalink)  
Old May 14th, 2007, 10:21 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,
You can store the selected value as request attribute using HttpRequest.setAttribute() method and get it using getAttribute() in the jsp page and compare with the combo box values and if one of the options value is equal to the value retrieved from request object set its selected attributes value as selected.

Regards,
Rakesh
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help in jsp naidu.chandrakala JSP Basics 6 November 1st, 2007 02:32 AM
JSP dhanu798 Pro JSP 1 July 1st, 2006 07:41 PM
Please Help. mr_newreq.jsp:78: jsp:useBean can't f batken JSP Basics 0 February 22nd, 2006 09:56 PM
jsp harshika JSP Basics 1 August 3rd, 2005 12:37 PM
jsp edwrd04 Wrox Book Feedback 1 May 15th, 2004 11:56 PM



All times are GMT -4. The time now is 07:23 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.