Link to home
Start Free TrialLog in
Avatar of leawasson
leawasson

asked on

STRUTS html-el:select tag event

In the STRUTS html-el:select tag, are you able to add an onchange or onclick event.  If I try these actions in the tag, I get the error "invalid for tag select according to TLD".  Any help would be greatly appreciated.
Avatar of Jason Minton
Jason Minton
Flag of United States of America image

<struts_html:select onchange="javascript:
optionsStateProvince(document.userRegistrationForm,document.userRegistration
Form.country.options[document.userRegistrationForm.country.selectedIndex].te
xt)" property="country" > 
        <struts_html:options collection="countryOptions" property="value"
labelProperty="label" />
        </struts_html:select>

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14454.html
ASKER CERTIFIED SOLUTION
Avatar of cesarelhage
cesarelhage

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of leawasson
leawasson

ASKER

Thank you very much.  That was the problem.  All of the examples I could find use the onChange with an uppercase "C".  I found out last night how to look at the actual TLD inside the struts-el.jar and saw these attributes are indeed lowercase.

Thank you very much for your prompt response.