Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3437
  • Last Modified:

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.
0
leawasson
Asked:
leawasson
1 Solution
 
jasonsbytesCommented:
<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
0
 
cesarelhageCommented:
Hello,
make sure you are using "onchange" with a lowercase 'c' instead of "onChange", the same with the "onclick" event. what version of struts are you using?
0
 
leawassonAuthor Commented:
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.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now