> It won't work, as the jsessionid is not a query parameter.

By that Thiago means that it's not a query parameter managed by the
Link, so you can't remove it. The jsessionid query parameter is added
by the servlet container when you call to*URI.

Josh

On Fri, Feb 25, 2011 at 3:43 PM, Thiago H. de Paula Figueiredo
<[email protected]> wrote:
> On Fri, 25 Feb 2011 20:36:55 -0300, Mark <[email protected]> wrote:
>
>> Ah ok.  That explains why I see it sometimes and not others.  This is
>> what I ended up doing:
>>
>> Link link = pageRenderLinkSource.createPageRenderLinkWithContext("page",
>> context);
>> link.removeParameter("jsessionid");
>> return link;
>>
>> Any problems with that?
>
> It won't work, as the jsessionid is not a query parameter. Invoke one of the
> to*URI() methods and remove the jsessionid.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to