• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp...urgent help required

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
reply
    Bookmark Topic Watch Topic
  • New Topic