Re: Cookie in struts2

2013-05-15 Thread john lee
thanks, in my program, after i import it, the compile error is gone. From: Chris Pratt To: Struts Users Mailing List Cc: john lee Sent: Wednesday, May 15, 2013 4:54 PM Subject: Re: Cookie in struts2 Ah, my bad, you are correct, Dave. John, like Dave

Re: Cookie in struts2

2013-05-15 Thread Chris Pratt
Ah, my bad, you are correct, Dave. John, like Dave pointed out, you should be using: import javax.servlet.Cookie; Cookie[] cookieList = ServletActionContext.getRequest().getCookies(); (*Chris*) On Wed, May 15, 2013 at 2:41 PM, Dave Newton wrote: > (With the caveat that the interface is rea

Re: Cookie in struts2

2013-05-15 Thread Dave Newton
(With the caveat that the interface is really for actions, while the OP seems to be working inside an interceptor.) Dave On Wed, May 15, 2013 at 5:25 PM, Chris Pratt wrote: > You might want to look into the CookiesAware interface. It's a better way > of accessing cookies. Here's a good post

Re: Cookie in struts2

2013-05-15 Thread Chris Pratt
You might want to look into the CookiesAware interface. It's a better way of accessing cookies. Here's a good post on handling Cookies in Struts 2: http://omkarp.blogspot.com/2007/07/working-with-cookies-in-struts2.html (*Chris*) On Wed, May 15, 2013 at 2:14 PM, Dave Newton wrote: > Import

Re: Cookie in struts2

2013-05-15 Thread Dave Newton
Import the Cookie class, and get the cookies from the request, not the class of the request? Dave On Wed, May 15, 2013 at 4:56 PM, john lee wrote: > > > I have no difficulty to handle cookie in struts 1, but have lots of error > in struts 2 > > i have the following program > > > public class

Re: Cookie Manipulation attack

2010-05-27 Thread Alex Rodriguez Lopez
Em 27-05-2010 11:27, Vishnu Vyasan Nelliparmbil escreveu: Hi Guys, I am handling a application in which we have application in two languages. There is a Locale action for setting locale to English or Arabic based on the parameter being passed from the respective index pages. I.e. index_en.jsp an

Re: Cookie Intercepter configuration

2009-02-11 Thread Musachy Barroso
That explains my deja vu feeling :) musachy On Wed, Feb 11, 2009 at 7:36 AM, Andy Law wrote: > > > Musachy Barroso wrote: >> >> It is a bug. This interceptor was added in 2.0.7, and it was never >> added to struts-default.xml in the 2.1 branch. Just add this to your >> struts.xml: >> >> > class=

Re: Cookie Intercepter configuration

2009-02-11 Thread Andy Law
Musachy Barroso wrote: > > It is a bug. This interceptor was added in 2.0.7, and it was never > added to struts-default.xml in the 2.1 branch. Just add this to your > struts.xml: > > class="org.apache.struts2.interceptor.CookieInterceptor"/> > > for reference: > > https://issues.apache.org/s

Re: Cookie Intercepter configuration

2009-02-10 Thread Dave Newton
Norris Shelton wrote: Correct, that is the only action that needs cookie information. I believe I was misunderstood. I'm saying that the cookie interceptor is the *only* interceptor that will be called for that action--again, this may be what you intended, but that is something different tha

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
Thanks! From: Musachy Barroso To: Struts Users Mailing List Sent: Tuesday, February 10, 2009 10:35:01 AM Subject: Re: Cookie Intercepter configuration It is a bug. This interceptor was added in 2.0.7, and it was never added to struts-default.xml in the 2.1

Re: Cookie Intercepter configuration

2009-02-10 Thread Musachy Barroso
>>>>> class="mil.army.usaac.conap.soldier.ViewAction"> >>> >>>* >>>* >>> >>> >>> >>>

Re: Cookie Intercepter configuration

2009-02-10 Thread Musachy Barroso
> value="mil.army.usaac.conap"/> >> >> >>> class="mil.army.usaac.conap.soldier.ViewAction"> >> >>* >>* >> >> >> >> >> >> >> >> >> From: Jack Qu

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
That is a very good question. Is it supposed to be in the default? I assumed it was there. From: Musachy Barroso To: Struts Users Mailing List Sent: Tuesday, February 10, 2009 10:27:42 AM Subject: Re: Cookie Intercepter configuration Where is the cookie

Re: Cookie Intercepter configuration

2009-02-10 Thread Musachy Barroso
> > class="mil.army.usaac.conap.soldier.ViewAction"> > >* >* > > > > > > > > ________ > From: Jack Qu > To: Struts Users Mailing List > Sent: Tuesday, February 10, 2009 8:55:11 AM > Subject: Re: Cookie Intercepter configurat

Re: Cookie Intercepter configuration

2009-02-10 Thread Musachy Barroso
gt; From: Dave Newton > To: Struts Users Mailing List > Sent: Monday, February 9, 2009 9:27:02 PM > Subject: Re: Cookie Intercepter configuration > > Norris Shelton wrote: >> Struts 2.1.6 on Glassfish 9.1_02 >> >> I am trying to configure the cookie intercepter, bu

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
009 8:55:11 AM Subject: Re: Cookie Intercepter configuration what's the file:/C:/dev/sun/sjas9_1_u2/domains/domain1/applications/j2ee-modules/conap/WEB-INF/classes/struts.xml:17:44 show text! -- From: "Norris Shelton" Sent: Tuesday,

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
From: Dave Newton To: Struts Users Mailing List Sent: Monday, February 9, 2009 9:27:02 PM Subject: Re: Cookie Intercepter configuration Norris Shelton wrote: > Struts 2.1.6 on Glassfish 9.1_02 > > I am trying to configure the cookie intercepter, but it looks

Re: Cookie Intercepter configuration

2009-02-10 Thread Jack Qu
sachy Barroso To: Struts Users Mailing List Sent: Monday, February 9, 2009 5:20:45 PM Subject: Re: Cookie Intercepter configuration There should be a more meaningful exception down there in the log, can you post the whole stack trace? musachy On Mon, Feb 9, 2009 at 4:38 PM, Norris Shelton

Re: Cookie Intercepter configuration

2009-02-10 Thread Norris Shelton
|#] From: Musachy Barroso To: Struts Users Mailing List Sent: Monday, February 9, 2009 5:20:45 PM Subject: Re: Cookie Intercepter configuration There should be a more meaningful exception down there in the log, can you post the whole stack trace? musachy On Mon, Feb 9, 2009 at 4:38 PM, Norris

Re: Cookie Intercepter configuration

2009-02-09 Thread Dave Newton
Norris Shelton wrote: Struts 2.1.6 on Glassfish 9.1_02 I am trying to configure the cookie intercepter, but it looks like I am missing something. I have the following in my struts.xml: * * Also be aware that

Re: Cookie Intercepter configuration

2009-02-09 Thread Musachy Barroso
There should be a more meaningful exception down there in the log, can you post the whole stack trace? musachy On Mon, Feb 9, 2009 at 4:38 PM, Norris Shelton wrote: > Struts 2.1.6 on Glassfish 9.1_02 > > I am trying to configure the cookie intercepter, but it looks like I am > missing something

RE: Cookie

2006-04-01 Thread Ruben Cepeda
I've never done it myself but this might try to add the cookie with a null value in theresponse object. response.addCookie(new Cookie("targetName",null)); Let me know if works. * Ruben Cepeda [EMAIL PROTECTED] * Ori

Re: Cookie problem is killing me

2005-09-09 Thread Martin Gainty
Good Morning David The domain name you supply must conform to rfc2109 domain name specification (reference) http://www.faqs.org/rfcs/rfc2109.html to quote "7.2 Protocol Design The restrictions on the value of the Domain attribute, and the rules concerning unverifiable transactions, are mea