velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From M Ashikuzzaman <as...@therapservices.net>
Subject & < > issue
Date Sat, 30 Oct 2004 10:40:49 GMT
Hi list,

I am using velocity with fop to generate pdf reports using a velocity
template formate from my form.

It works fine unless user inputs &, < or > sign as values for comment in
text areas etc. I need to parse them as follows to get rid of he FOP
Exception.

& to &amp;
< to lt;
> to gt;

How may I convert them? What can be my best point to convert them? May i
change the incoming string values in my velocity macro file by checking
for these characters and parse them in html content? How? Any comment
would be appreciated.

Ashik
Senior Programmer,
Therap (BD) Ltd.

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message