Hi Firat, thanx for the response,

But in more spesific case, consider I have 2 bussiness object:
- Machine contains property: int machineId, String machineName
- Location contains property: int locationId, String locationName,
Collection machines (instatiated as new ArrayList() contains Machine(s))

I have Collection locations (instantiated as new ArrayList() contains
Location(s)) with data from database and save it to the request or session,
and has listed successfully at drop down list using code below at jsp page.

<tr>
<td><bean:message key="addLogBook.location" /></td>
<td>
<html:select name="logBookForm" property="location.locationId">
<html:options collection="locations" property="locationId"
labelProperty="locationName"/>
</html:select>
</td>
</tr>

How can I make the second drop down list dynamically changes depend on what
Item selected at first drop down list?
The second drop down list contains Collection machines of Location.

Notes: logBookForm I configured as DynaValidatorForm.

Thanx for your help guys.
-GI.

----- Original Message -----
From: "Firat TIRYAKI" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 01, 2003 5:44 PM
Subject: Re: Drop-down-list


> You can directly do it using javascript, refer to the below URL for a
> detailed example
>
> http://www.jguru.com/faq/view.jsp?EID=923880
>
> F.
>
> ----- Original Message -----
> From: "Gede Indrawan" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, December 01, 2003 12:39 PM
> Subject: Drop-down-list
>
>
> > Hi all,
> >
> > In case I have 2 drop-down-lists and the second drop-down-list content
> > changed automatically if we select certain item at the first one,
> > how can I do it in the struts world? Any references to this case? Any
code
> > example?
> >
> > I am totally blind to this case..
> >
> > best regards
> > -GI.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to