Vijay Rajendran

Greenhorn
+ Follow
since Mar 30, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Vijay Rajendran

I tried the previous method, but I found the below one much more easier to replace,

<replace file="${file}" token="Apple" value="Orange" />
14 years ago
Hi,

I want to replace a word in a file using ANT script.

For Ex : Let's consider there is a line

"I like Apple" , in this line I'd like to replace the word "Apple" with "Orange" i.e the expected output should be "I like Orange".

This should be done using ANT script, any help is much appreciated.
14 years ago
Hi Russel,
I hope there is an error in your web.xml file.. try adding jsp-config section to your document... so ur code should look like..
<jsp-config>
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
</jsp-config>


Send me ur feed back if it works...
regards,
R Vijay
rvijaycool@yahoo.com
18 years ago
Hi Russel,
I hope there is an error in your web.xml file.. try adding jsp-config section to your document... so ur code should look like..
<jsp-config>
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
</jsp-config>


Send me ur feed back if it works...
regards,
R Vijay
rvijaycool@yahoo.com
18 years ago