Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp...urgent help required  RSS feed

 
devendra singh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!