File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Apache Velocity Escape characters Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Apache Velocity Escape characters" Watch "Apache Velocity Escape characters" New topic
Author

Apache Velocity Escape characters

Niall Loughnane
Ranch Hand

Joined: Dec 07, 2006
Posts: 159
Hi,

I know that is not the right forum but PLEASE help,

I am creating a velocity template and the velocity template object is being escaped,

what i am trying to do is use the following template:


this calls the method getUrl() on the person class but the url that is being returned is being escaped,

urls are being converted from:
"< a href='http://www.john.com' rel="nofollow" >www.john.com< / a >"
to
& quot ; & lt ; a href= & quot;http://www.john.com//& quot;& gt;http://www.john.com& lt;/a& gt;& quot;


i think this is being done in:
* class: org.apache.velocity.runtime.parser.node
* method: render(InternalContextAdapter context, Writer writer)

any advice would be amazing,

Thanks in Advance,

Niall
 
 
subject: Apache Velocity Escape characters
 
Threads others viewed
Can not Populate the form on combo box change
Jsp is not displaying in Struts2
Getting null while trying to get value of Multiple list
servlet mapping
iterate problem in struts2
MyEclipse, The Clear Choice