You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Anindito De <an...@infosys.com> on 2003/11/06 11:59:46 UTC

dynamically populating options in form

Hi,

We have two select boxes in an HTML form. Based on the option that the
user selects in the first box and some other considerations, the
contents in the second box get populated. Are there any reasonable means
of doing this in struts with minimal use of JavaScript ?

Thanks in advance
Anindito

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


RE: dynamically populating options in form

Posted by Andrew Hill <an...@gridnode.com>.
Well at the least you would probably want to use some javascript to trigger
the submission of the form onchange of the first select so that you can
populate the second select based on the first's value over on the server
side and then redisplay the form.

To do it without any javascript you would need to use a second submit button
to do this, which the user would need to click after having entered a value
in the first field.

-----Original Message-----
From: Anindito De [mailto:anindito@infosys.com]
Sent: Thursday, 6 November 2003 19:00
To: struts-user@jakarta.apache.org
Subject: dynamically populating options in form


Hi,

We have two select boxes in an HTML form. Based on the option that the
user selects in the first box and some other considerations, the
contents in the second box get populated. Are there any reasonable means
of doing this in struts with minimal use of JavaScript ?

Thanks in advance
Anindito

---------------------------------------------------------------------
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