struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell" <>
Subject Re: Overwriting HtmlTag
Date Wed, 04 May 2005 20:05:00 GMT
Sort of a hack, but you could achieve this during the build with the Ant 
replace tag.

Here's a related topic:

Based on what Yann posted in a comment, you could modify it to do what you 

<replaceregexp match="&gt;html:form&lt;" replace="&gt;html:form 
onclick=&quot;;" flags="g" byline="false">
   <fileset dir="${build.home}" includes="**/*.jsp,**/*.tag"/>

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.
AIM:   jmitchtx
Yahoo: jmitchtx

----- Original Message ----- 
From: "Nancy Lin" <>
To: "Struts Users Mailing List" <>
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
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message