You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Gatos <eg...@gmail.com> on 2009/07/28 09:16:02 UTC
Resource without sessionId
When I try to request a resource using url http://domain.com/resource.csv
then I get 302 to http://domain.com/resource.csv;jsessionid=joiadfadsfad
and all generated links it csv file with 'jsessionid' parameter.
How to use resource without sessionid?
Thank you
Re: Resource without sessionId
Posted by Gatos <eg...@gmail.com>.
Igor, You're right! This 302 depends on server or server configuration. For
example tomcat just sets cookie without redirect.
I guess the correct question will be - how to generate url without sessionId
from WebResource?
I'm trying to generate url to an application page from a .csv file. If I
request .csv file from a browser that doesn't support cookies then links in
this file are generated with jsessionid.
String url = RequestCycle.get().urlFor(AnnouncementViewPage.class,
pageParams).toString();
String absoluteUrl = RequestUtils.toAbsolutePath(url);
On Wed, Jul 29, 2009 at 6:50 PM, Igor Vaynberg <ig...@gmail.com>wrote:
> doesnt look like that url is even handled by wicket....
>
> -igor
>
> On Tue, Jul 28, 2009 at 12:16 AM, Gatos<eg...@gmail.com> wrote:
> > When I try to request a resource using url
> http://domain.com/resource.csv
> > then I get 302 to http://domain.com/resource.csv;jsessionid=joiadfadsfad
> > and all generated links it csv file with 'jsessionid' parameter.
> >
> > How to use resource without sessionid?
> >
> > Thank you
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Resource without sessionId
Posted by Igor Vaynberg <ig...@gmail.com>.
doesnt look like that url is even handled by wicket....
-igor
On Tue, Jul 28, 2009 at 12:16 AM, Gatos<eg...@gmail.com> wrote:
> When I try to request a resource using url http://domain.com/resource.csv
> then I get 302 to http://domain.com/resource.csv;jsessionid=joiadfadsfad
> and all generated links it csv file with 'jsessionid' parameter.
>
> How to use resource without sessionid?
>
> Thank you
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Resource without sessionId
Posted by Gatos <eg...@gmail.com>.
help anyone? :P
On Tue, Jul 28, 2009 at 10:16 AM, Gatos <eg...@gmail.com> wrote:
> When I try to request a resource using url http://domain.com/resource.csv
> then I get 302 to http://domain.com/resource.csv;jsessionid=joiadfadsfad
> and all generated links it csv file with 'jsessionid' parameter.
>
> How to use resource without sessionid?
>
> Thank you
>