• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

3 selects boxes- need your suggestions

 
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Somebody.. please advise me on this..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic