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. <html:form action="/Go" name="GoForm" type="my.GoForm"> <bean:message key="app.select.category"/> <html:select property="category"> <html:options name="GoForm" property="categoryCollection"/> </html:select> <bean:message key="app.select.subcategory"/> <html:select property="subcategory"> <html:options name="GoForm" property="subcategoryCollection"/> </html:select> ... </html:form> Thanks for helping, Kelly --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]