struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Rank <ericr...@lo-fi.net>
Subject Re: Struts2 + Cookies
Date Tue, 23 Jan 2007 19:07:37 GMT
Until we get the CookieInterceptor, you can use the  
ServletActionContext  (org.apache.struts2 package) to access the  
Request and Response necessary for working with Cookies:

Cookies[] myCookies = ServletActionContext.getRequest().getCookies();
ServletActionContext.getResponse().addCookie(new Cookie 
("name","value"));

Eric Rank


On Jan 23, 2007, at 6:43 AM, Tom Schneider wrote:

> I seem to remember a CookieInterceptor: https://issues.apache.org/ 
> struts/browse/WW-669.  It doesn't look like it has made it into the  
> core framework yet.
>
> Emmanuel KOJE wrote:
>> Hi Guys,
>> I tried without sucess to get some information about the  
>> management of cookie using struts2.
>> Could you help me to get some information ?
>>
>> Thanks,
>>
>>
>>
>>
>>   
>> _____________________________________________________________________ 
>> _______________
>> The fish are biting. Get more visitors on your site using Yahoo!  
>> Search Marketing.
>> http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


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


Mime
View raw message