Here's a related topic: http://raibledesigns.com/page/rd?anchor=trim_spaces_in_your_jsp
Based on what Yann posted in a comment, you could modify it to do what you need.
<replaceregexp match=">html:form<" replace=">html:form onclick="do.your.java.script.here"e<" flags="g" byline="false">
<fileset dir="${build.home}" includes="**/*.jsp,**/*.tag"/>
</replaceregexp>
Be advised though, I did not try the above, that was off the top of my head.
-- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED]
----- Original Message ----- From: "Nancy Lin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Wednesday, May 04, 2005 11:59 AM
Subject: Overwriting HtmlTag
Hi all,
I have bunch of jsp with html tag and I want to automatically generate onchange function whent user changes/modified the data. Since the function that will be called on onChange will be the same throught out, I do not want every developer to go to each JSP(there are hundreds of file) and implement the onchange method on each field. I want to be able to overwrite the html tag to automatically generate the onchange function.
Any good idea?
Nancy.
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--------------------------------------------------------------------- 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]