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 prepareLOVs is called on a post-back event:

public void prepareLOVs(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_LOV, municipalities );
}


-----Original Message-----
From: Joe Yuen [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 14, 2006 4:18 PM
To: user@struts.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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to