aspose 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 » 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: 201
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Apache Velocity Escape characters
 
Similar Threads
Getting null while trying to get value of Multiple list
servlet mapping
iterate problem in struts2
Jsp is not displaying in Struts2
Can not Populate the form on combo box change