jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes jsp...urgent help required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp...urgent help required" Watch "jsp...urgent help required" New topic

jsp...urgent help required

devendra singh

Joined: Jun 22, 2000
Posts: 13
hi everybody...
i have made 6 combo boxes in my form .in this particular form i have two text boxes in which i am getting data from database ie calling a new jsp page in which the data comes in table format.
the problem is that when i am inserting data in the two text boxes...thriugh this particular table
the value set in combo boxes disapper (comes to default value)bcoz the page gets refreshed..
is there any other alternative for this...
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13025
This is really an HTML problem, not a servlets problem.
When you generate the combo boxes, all you have to do is include the work SELECTED in the option that you want to be shown as selected by default.
<option value="001" SELECTED >Text that will be shown selected.

author of:
I agree. Here's the link: http://aspose.com/file-tools
subject: jsp...urgent help required
jQuery in Action, 3rd edition