*
The moose likes Other Application Frameworks and the fly likes Apache Velocity Escape characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
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: 208
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://aspose.com/file-tools
 
subject: Apache Velocity Escape characters
 
Similar Threads
servlet mapping
Getting null while trying to get value of Multiple list
Can not Populate the form on combo box change
Jsp is not displaying in Struts2
iterate problem in struts2