RE: generating select options from a previous select
AFAIK, you will have to use JavaScript. See the onChange() event handler in the JavaScript API. This is very simple to do. http://devedge.netscape.com/central/javascript/ Mark -Original Message- From: Clauson, Kelly [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 1:46 PM To: [EMAIL PROTECTED] Subject: generating select options from a previous select Hello, I have a form with two select tags. I want the options for the second to be dependent on the option chosen for the first. What is the best way to accomplish this? If java script is the answer, how do I obtain the value of the option chosen in the first select (I'm new to web apps)? What I've tried to do is create the options for the second select in the form bean given the value of the first, but of course, the set method for the property associated with the first select is not called until the form is submitted. ... Thanks for helping, Kelly - 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]
RE: generating select options from a previous select
There are some good one here: http://javascript.internet.com/forms/ Make sure what you pick is compatible with most browsers. -- James Mitchell Software Developer/Struts Evangelist http://struts.sourceforge.net/struts-atlanta/ > -Original Message- > From: Clauson, Kelly [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 11, 2003 1:46 PM > To: [EMAIL PROTECTED] > Subject: generating select options from a previous select > > > Hello, > > I have a form with two select tags. I want the options for > the second to be > dependent on the option chosen for the first. What is the best way to > accomplish this? If java script is the answer, how do I > obtain the value of > the option chosen in the first select (I'm new to web apps)? > > What I've tried to do is create the options for the second > select in the > form bean given the value of the first, but of course, the > set method for > the property associated with the first select is not called > until the form > is submitted. > > > > > > > > > > > > > > ... > > > Thanks for helping, > Kelly > > - > 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]