File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem in displaying the list" Watch "problem in displaying the list" New topic

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.
    I agree. Here's the link:
    subject: problem in displaying the list
    It's not a secret anymore!