This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes problem in displaying the list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem in displaying the list" Watch "problem in displaying the list" New topic
Author

problem in displaying the list

michell o'brien
Ranch Hand

Joined: Jun 09, 2009
Posts: 37
I want to display a list of items. When I select 1st item the sub-items of it should come above the 2nd item. eg

  • Apparel
  • Shoe Accessiores


  • when I click on Apparels the items coming under it should come above shoe Accessiores. And when i click on Shoe Accessiores all the items of appaerls should be disapeared.
    Right now code what ever I have written is displaying everythin under Shoe Accessiores. And after I select the 2nd item the first items cirles do remain
    I am not sure whether this can be done using struts or javascripts.

    Alec Lee
    Ranch Hand

    Joined: Jan 28, 2004
    Posts: 569
    Your need Javascript to dynamically modify the subitems' select box whenever onchange event triggered for the 1st Select box. Or, if you insist not to write Javascript, submit a request to fetch a page with the proper subitem select box whenever 1st Select Box onchange event triggered - but writing javascript is much prefered.
     
    GeeCON Prague 2014
     
    subject: problem in displaying the list