• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

moving values from 1 select box to another  RSS feed

Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 2 select boxes on a jsp. The first is populated with a list of "available services" which are retrieved from a database when the page is loaded. The second, "selected services" is initially empty, until the user selects a service. When the user selects a service and hits the "add" button, I want the service to appear in the "selected services" select box and to be removed from the "available services" select box.
Thus, a number of services can be selected. However, I also want to be able to pass the selected services from page to page. More specifically, when the user has selected all the services they want, they acn choose to save the info. by clicking "save" which brings up a confirmation page, listing the services they have chosen.
If, from the confirmation page the user wishes to modify his or her selections (by clicking "modify"), I want the previous page to be displayed with the previously selected services still selected.
How can I pass this varying number of parameters back and forth? Once the user has made an entry and committed it to DB, he or she can do another entry and if I use a session bean, the page doesn't refresh for subsequent entries (i.e. the selected services for the previous entry are still displayed)
Thanks for your help,
I'm still in control here. LOOK at this tiny ad!
global solutions you can do at home or in your backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!