liferay template: how to encode url
For some reason when I'm using liferay in internet explorer it does not seem to accept cookies. So I guess I need to encode my URLs.
I tried httpUti开发者_如何转开发l.encodeURL('http://x.com/y',true)
but that just gets me http://x.com/y again without the JSessionID appended.
VelocityTools has a LinkTool that can encode urls too. Also, make sure that a session has been created.
The EscapeTool is an alternative to the LinkTool
精彩评论