struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: Use jsessionid in Message
Date Sun, 02 May 2004 04:53:32 GMT
Joseph Toth wrote:

>Is there an easy way to replace a jsessionid in a message?
>Something like...
>message.intro=Welcome, click <a href="/;jsessionid={0}">here</a>
>to join!
>Some of my messages are paragraphs long with a few links in them.  I
>wanted to know if is a way to keep the texts and links inside that one
>message.  I would rather not assume that {0} links to
>/;jessiondid=xxxx as this site is internationalized and the
>links/replacements can get messy for different messages.
One approach would be to make the URL itself a replacement parameter -- 
something like:  message.intro=Click <a href="{0}">here</a> to join!

This way, you can use response.encodeURL() to encode the session 
identifier into the URL itself, if necessary.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message