File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp...urgent help required" Watch "jsp...urgent help required" New topic
Author

jsp...urgent help required

devendra singh
Greenhorn

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...
regards
devendra
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
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.
Bill

------------------
author of:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp...urgent help required