Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set selected value to combobox after refreshing page

 
Dipti Lokhande
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP design is as follows:

Student Type : combo-box which contains different types (PartTime, FullTime)
Student ID : text field whr user enters Student ID
Student Name : text filed which displays Student name
:
:
:


In the above application, Student name is retrieved from database &
passing parameters StudentType & StudentID. This is happened on onBlur
event of the StudentID text field.

Now here I'm facing problem as , when student name is displayed on the
form, selected student type is being lost & it sets to the default
student type ie 1st one as I want to restore it.

Please tell me what should I do to resolve this issue.
Expecting reply asap.

Thanks in advance.
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use SELECTED property.

 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Dipti Lokhande:

Expecting reply asap.


Please keep in mind that everyone answering questions here is a volunteer and that nobody should ever be expected to do anything, let alone on any sort of time frame.

See this to find out why sentences like this (or adding 'Urgent' to your posts) can actually turn helpful people away; slowing down or halting responses to your questions altogether.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic