Fedor Smirnoff wrote:

Hi,

I have a couple of links that are printed from custom tags so I cannot use
html:link, I know I can just add ;jsessionid= but is there a way to
determine if there is a need for jsessionid to be added to the link, same
way <html:link does so when client using cookies, jsessionid is not added.

Thanks
Fedor



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Your best bet is to do exactly what the implementation of <html:link> does ... pass in your destination URL to the response.encodeURL() method. This lets the servlet container decide whether it needs to add the session identifier to the URL or not.

Craig


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to