Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • dependent drop down lists

    0 answers - 1302 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    You'd need to rebuild the second list on the posting of the form, i.e.
    1. get value selected from first list
    2. invoke method to refresh dependent list based on user prm from fist list
    3. place that list into a request attribute to read on the page.
    Here's a code snippet. The prepareLVs is called on a post-back event:
    public void prepareLVs(ActionForm form,
    HttpServletRequest request)
    throws Exception
    {
    MyForm myform = (MyForm) form;
    String strCountyId = myform.getCounty_id();
    AppModule am = new AppModuleImpl( request.getRemoteUser() );
    List municipalities = am.getPaMunicipalitiesView( strCountyId );
    request.setAttribute ( Constants.MUNICIPALITIES_LV, municipalities );
    }
    Message
    From: Joe Yuen [mailto:joe.yuen (AT) chisq (DOT) com]
    Sent: Thursday, September 14, 2006 4:18 PM
    To: user (AT) struts (DOT) apache.org
    Subject: dependent drop down lists
    Importance: High
    I currently having trouble implementing dependent drop down lists. Do anyone know where I might see an example of how to implement such a thing?
    Thanks,
    -Joe
    To unsubscribe, e-mail: user-unsubscribe (AT) struts (DOT) apache.org
    For additional commands, e-mail: user-help (AT) struts (DOT) apache.org

Re: dependent drop down lists


max 4000 letters.
Your nickname that display:
In order to stop the spam: 7 + 6 =
QUESTION ON "Java"

EMSDN.COM