Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

3 selects boxes- need your suggestions

 
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firends,
I have 3 select boxes (Type,Category,SubCategory), in a JSP and all the lables abd values will from databases. Thats fine. Before coming to this JSp page, I can get the lables abd values from Database and put in a session object in the action class.
ANd the point is these three are interrelated. Means, Based on what I select in the Type selectbox, the values in Category will change and based on what I select in Category selectbox, the values in Subcategory box will change.
has anyone handled situation like this.
If so , pleae guide me on how to go about it.
[ November 14, 2003: Message edited by: manasa teja ]
 
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As i have mentioned earlier, if you wanna avoid javascripting on the jsp page, the only other way to do it would be to submit the form and the action class that you post to should know that this is a refresh submit and that action class should load the field B on the basis of the field A value selected, you could do the same thing for field C.
HTH
Sahil
 
manasa teja
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cansomebody throw some light on this ..
Sandy's suggestion is good.. But, everytime, I need to go to database and fetch the values for second and third select boxes, whenever there is a change in the first select box..
Is that adviasable??
Are there any other ways to do it..
[ November 17, 2003: Message edited by: manasa teja ]
 
manasa teja
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somebody.. please advise me on this..
 
Onion rings are vegetable donuts. Taste this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic