You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by James Sherwood <js...@romulin.com> on 2004/09/16 13:28:35 UTC

Direct link stale session

I am trying to make a confermation page where I email the user a link and
they click on it to confirm something.

I made it a directlink in the page and in the java I just pull in the
service paramater which is a long random string.

It all works fine as long as they have went to a page on the site already
but if they try to just click on the link it opens a new browser and gives a
stale link

Any ideas why or a different way to accomplish this?

Thanks,
James



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Direct link stale session

Posted by Terry Poot <tp...@goldenvoid.com>.
James Sherwood wrote:

>I had the link correct, it worked fine as long as there was a session, its
>when there was no session it gave a stale link.
>  
>
And that will always be the case, it's the nature of a DirectLink. 
That's why you need to use an ExtermalLink. A direct link is always 
relative to an existing session, and if there isn't one, you'll get the 
exception. ExternalLink is specifically designed to be accessed 
"external" to the web app: from an email, a book mark, a search engine, 
another web page outside the web app, etc. What you're trying to do is 
precisely the sort of thing that ExternalLink is for.

>I have the direct link set to statless as well(tried it both ways)
>
>----- Original Message ----- 
>From: "Holger Stephan" <tm...@frogleg.net>
>To: "Tapestry users" <ta...@jakarta.apache.org>
>Sent: Thursday, September 16, 2004 12:37 PM
>Subject: Re: Direct link stale session
>
>
>  
>
>>James, in your confirmation mail use an ExternalLink, with the
>>parameter(s) already encoded. You can either do this yourself (by
>>checking out how service parameters are handled, easy enough) or by
>>calling AbstractService.constructLink.
>>
>>- Holger
>>
>>On Thu, 2004-09-16 at 04:28, James Sherwood wrote:
>>    
>>
>>>I am trying to make a confermation page where I email the user a link
>>>      
>>>
>and
>  
>
>>>they click on it to confirm something.
>>>
>>>I made it a directlink in the page and in the java I just pull in the
>>>service paramater which is a long random string.
>>>
>>>It all works fine as long as they have went to a page on the site
>>>      
>>>
>already
>  
>
>>>but if they try to just click on the link it opens a new browser and
>>>      
>>>
>gives a
>  
>
>>>stale link
>>>
>>>Any ideas why or a different way to accomplish this?
>>>
>>>Thanks,
>>>James
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Direct link stale session

Posted by James Sherwood <js...@romulin.com>.
I had the link correct, it worked fine as long as there was a session, its
when there was no session it gave a stale link.

I have the direct link set to statless as well(tried it both ways)

----- Original Message ----- 
From: "Holger Stephan" <tm...@frogleg.net>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Thursday, September 16, 2004 12:37 PM
Subject: Re: Direct link stale session


> James, in your confirmation mail use an ExternalLink, with the
> parameter(s) already encoded. You can either do this yourself (by
> checking out how service parameters are handled, easy enough) or by
> calling AbstractService.constructLink.
>
> - Holger
>
> On Thu, 2004-09-16 at 04:28, James Sherwood wrote:
> > I am trying to make a confermation page where I email the user a link
and
> > they click on it to confirm something.
> >
> > I made it a directlink in the page and in the java I just pull in the
> > service paramater which is a long random string.
> >
> > It all works fine as long as they have went to a page on the site
already
> > but if they try to just click on the link it opens a new browser and
gives a
> > stale link
> >
> > Any ideas why or a different way to accomplish this?
> >
> > Thanks,
> > James
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Direct link stale session

Posted by Holger Stephan <tm...@frogleg.net>.
James, in your confirmation mail use an ExternalLink, with the
parameter(s) already encoded. You can either do this yourself (by
checking out how service parameters are handled, easy enough) or by
calling AbstractService.constructLink.

- Holger

On Thu, 2004-09-16 at 04:28, James Sherwood wrote:
> I am trying to make a confermation page where I email the user a link and
> they click on it to confirm something.
> 
> I made it a directlink in the page and in the java I just pull in the
> service paramater which is a long random string.
> 
> It all works fine as long as they have went to a page on the site already
> but if they try to just click on the link it opens a new browser and gives a
> stale link
> 
> Any ideas why or a different way to accomplish this?
> 
> Thanks,
> James


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org