You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Borut Bolčina <bo...@gmail.com> on 2007/10/01 17:00:30 UTC

[T5]

Hi,

is there a T5 way of sending and receiving cookies?

Cheers,
Borut

Re: [T5]

Posted by Ned Jackson Lovely <nj...@qu.to>.
On Mon, Oct 01, 2007 at 10:56:56AM -0500, Robert Zeigler wrote:
> Or...
> 
> @Inject
> private Cookies _cookies;
> 
> You can then do:
> 
> readCookieValue("mycookie");
> and there a variety of "writeCookieValue" methods offering control  
> over the age, domain, path, etc.

Excellent! Thank you. I need to poke around in the source more, eh?

Unfortunately, I found this:
https://issues.apache.org/jira/browse/TAPESTRY-1796

-- 
njl

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


Re: [T5]

Posted by Robert Zeigler <ro...@scazdl.org>.
Or...

@Inject
private Cookies _cookies;

You can then do:

readCookieValue("mycookie");
and there a variety of "writeCookieValue" methods offering control  
over the age, domain, path, etc.

Cheers,

Robert

On Oct 1, 2007, at 10/110:50 AM , Ned Jackson Lovely wrote:

> On Mon, Oct 01, 2007 at 05:00:30PM +0200, Borut Bolčina wrote:
>> is there a T5 way of sending and receiving cookies?
>
> @Inject
> private RequestGlobals _requestGlobals;
>
> You can then call _requestGlobals.getHTTPServletRequest() and
> _requestGlobals.getHTTPServletResponse() to get access to the Servlet
> Request and Response.
>
> -- 
> njl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org


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


Re: [T5]

Posted by Ned Jackson Lovely <nj...@qu.to>.
On Mon, Oct 01, 2007 at 05:00:30PM +0200, Borut Bolčina wrote:
> is there a T5 way of sending and receiving cookies?

@Inject
private RequestGlobals _requestGlobals;

You can then call _requestGlobals.getHTTPServletRequest() and
_requestGlobals.getHTTPServletResponse() to get access to the Servlet
Request and Response.

-- 
njl

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