struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gede Indrawan" <gede.indra...@gratika.co.id>
Subject Re: Drop-down-list
Date Tue, 02 Dec 2003 07:23:14 GMT
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" <firat@pleksus.com.tr>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
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" <gede.indrawan@gratika.co.id>
> To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> 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: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message