Two quick questions about cookies:
1. The cookie interceptor definition appears to be missing from the
struts-default.xml file on 2.1.6. Is this a sign the the interceptor is on
its way out?
2. The interceptor looks like it can only be used to read cookies. Do I need
to grab the response object
2009/1/20 Ignacio de Córdoba :
> I'd like to know if there is another path to get cookies in my interceptor.
> I've been developing on struts for a couple of years but I'm pretty newbie
> to struts2.
I think you should follow CookieInterceptor [1] approach which is u
I have used the static method you describe in the past.
Ignacio de Córdoba wrote:
>
> Hi there,
> I am writing a custom authentication and authorization interceptor and
> need access to cookies. I've checked in Struts2 and other docs both ways
> of getting access to c
Hi there,
I am writing a custom authentication and authorization interceptor and need
access to cookies. I've checked in Struts2 and other docs both ways of
getting access to cookies. I can't use CookieInterceptor or CookiesAware
interface as I need cookies in the interceptor, not in
Yep absolutely. Just my $.02. I used to use cookies all the time but found
they're more trouble than they are worth compared to the session. I only use
them now when they are the only good solution. :)
Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC
> From: Pierre Th
I believe so.
Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC
> From: Dave Newton <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List
> Date: Sat, 9 Aug 2008 10:54:59 -0700 (PDT)
> To: Struts Users Mailing List
> Subject: [OT] Re: [S2] general quest
unwieldy", the browser would make
those cookies available with the request only when the namespace of the
request were to be the same (or a child) of that long path.
Which is why, as you point out, the only practical options are "/" or
"contextPath()". (In which case, indeed, it doesn't matter where the user
enters.)
You're welcome. As long as you set the cookie path and stick to that path it
doesn't matter where the user enters the site. I normally use either / or
/context for my cookies.
Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC
> From: Pierre Thibaudeau <[EMAIL PROTEC
>
> Isn't a path of "/" a "site-wide" cookie?
>
Thank you, Dave. I just tried that and path "/" behaves as site-wide. That
solves my issue!
rent logical path?
>
> Is there such a thing as site-wide cookies?
Isn't a path of "/" a "site-wide" cookie?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
with path "/", who's to say that, on the next session that the user will
start, she won't enter the site through a different logical path?
Is there such a thing as site-wide cookies?
2008/8/9 Randy Burgess <[EMAIL PROTECTED]>
> If the path is different then they are co
If the path is different then they are completely separate cookies. So you
could have a cookie named "fruit" and a path of "/root" with a value of
"apple". You could have another cookie named "fruit" but with a path of
"/root/anotherpath" and it ha
it "by the book" according to
cookies specifications)?
Is there a way around this issue? Can I retain the "/users" namespace for
my login action and yet get the auto-login interceptor (with an action in
the "/" namespace) to read it back?
2008/8/9 Pierre Thibaudeau <
Struts: 2.1.2
browser: Firefox 3.0, with Firebug add-on
Strange phenomenon involving cookies. I don't know who to blame: my code,
Struts or Firefox...
I am running a copy of my application locally on my own local Tomcat server
(on localhost). After several operations on the webapplic
sai reddy wrote:
I'm a newbie to struts. I wanted to practice tag's
'multiple' attribute.
But the problem is i don't know how to set multiple cookies.
Please help me.
I tried this code to set multiple cookies...but only the last
cookie gets added...i mean th
I'm a newbie to struts. I wanted to practice tag's 'multiple'
attribute.
But the problem is i don't know how to set multiple cookies.
Please help me.
I tried this code to set multiple cookies...but only the last
cookie gets added...i mean the first one ge
lue}" required="true"/>
it gives me an error.. so.. how to use cookies in
, and ?
Thank you!
--
Robi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
Hello list.
in jsp I used to do things like:
nome utente: username:
but in S2 if I try the following
value="${cookie['username'].value}" required="true"/>
it gives me an error.. so.. how to use cookies
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
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
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 si
e if the cookie is actually being sent or not, or if perhaps it
> might be
> getting swallowed by a proxy somewhere.
>
> Craig
>
> --- Craig McClanahan <[EMAIL PROTECTED]> wrote:
> >
> > > On 6/15/06, Mon Cab <[EMAIL PROTECTED]> wrote:
> > > &g
lowed by a proxy somewhere.
Craig
--- Craig McClanahan <[EMAIL PROTECTED]> wrote:
> On 6/15/06, Mon Cab <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> >
> > All of a sudden tomcat has stopped settign session cookies. I have
> > been developing on my l
McClanahan <[EMAIL PROTECTED]> wrote:
> On 6/15/06, Mon Cab <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> >
> > All of a sudden tomcat has stopped settign session cookies. I have
> > been developing on my local machine for approx 1yr. Now, When
On 6/15/06, Mon Cab <[EMAIL PROTECTED]> wrote:
Hi
All of a sudden tomcat has stopped settign session cookies. I have
been developing on my local machine for approx 1yr. Now, When I goto my
webapps home page: http:/127.0.0.1:8080/webapp), tomcat is rewriting
the URL as
http://127.0.0.
great if any one can give the
configuration changes that are need when migrating an web application from
resin 2.0 server to Tomcat 5.5.17
Thanks
Priyadarsh
Mon Cab <[EMAIL PROTECTED]> wrote: Hi
All of a sudden tomcat has stopped settign session cookies. I have
been developing on my
Hi
All of a sudden tomcat has stopped settign session cookies. I have
been developing on my local machine for approx 1yr. Now, When I goto my
webapps home page: http:/127.0.0.1:8080/webapp), tomcat is rewriting
the URL as
http://127.0.0.1:8080/webapp/Welcome.do;jsessionid
Michael,
It would help isolate the problem if you can use firefox's LiveHttpHeaders
http://livehttpheaders.mozdev.org/ to examine Set-Cookies header from tomcat
and Cookie header to tomcat.
HTH
Hansen
-Original Message-
From: Chan Michael [mailto:[EMAIL PROTECTED]
Sent: M
window
> within a browser window are
> different things.
>
> http://asahin.net
>
>
> -Original Message-
> From: Chan Michael
> [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 24, 2006 12:18 PM
> To: user@struts.apache.org
> Subject: Session without
]
Sent: Monday, April 24, 2006 12:18 PM
To: user@struts.apache.org
Subject: Session without cookies
Hi All,
I have been searching for hours and still cannot find
any useful info. Hope you can help.
I am building a Struts app. (Struts 1.2.4 + Tomcat 5.5
+ Apache 2.0.55 + Spring 1.2.6) and want to
On 4/24/06, Chan Michael <[EMAIL PROTECTED]> wrote:
> Hi Chandra,
>
> Thanks for your prompt reply.
>
> I have checked many many times and I have 100% sure
> there is no
>
> Request.getSession(true);
Request.getSession(true);
and
Request.getSession();
are 100% identical.
regards
Leon
>
> in all
Hi Chandra,
As far as I know, the attribute "cookies" of the
"Context" node in Tomcat server.xml is the only place
I need to set. From the doc,
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
cookies:
Set to true if you want cookies to be used for session
identif
f create
> is false and the request has no valid HttpSession,
> this method returns null.
>
> To make sure the session is properly maintained, you
> must call this method before the response is
> committed. If the container is using cookies to
> maintain session integrity and is
false andthe request has no valid HttpSession, this method
returns null.
To make sure the session is properly maintained, you must call this method
before the response is committed. If the container is using cookies to maintain
session integrity and is asked to create a new session when the
Hi All,
I have been searching for hours and still cannot find
any useful info. Hope you can help.
I am building a Struts app. (Struts 1.2.4 + Tomcat 5.5
+ Apache 2.0.55 + Spring 1.2.6) and want to use
session without
enabling cookies. I use to create links so
;jsessionid is appended to the end
ed our web application to new host)
they said :
It looks like a bug in tomcat. Please force your application not to do
url rewriting and use cookies instead. This should solve your problem.
When i ask them about tomcat version they said :
its tomcat 5.5.15 , meanwhile my application works fine on tomcat
uced after we
moved our web application to new host)
they said :
It looks like a bug in tomcat. Please force your application not to do
url rewriting and use cookies instead. This should solve your problem.
When i ask them about tomcat version they said :
its tomcat 5.5.15 , meanwhile my applica
o
his site and examining his referrer logs. That's one reason cookies are
the preferred mechanism.
L.
David G. Friedman wrote:
Bernhard,
Does it really matter? In most Java application servers, don't they do both
for the first request but after the second
request, where cookies ar
Bernhard,
Does it really matter? In most Java application servers, don't they do both
for the first request but after the second
request, where cookies are detected to be on, they stop using url rewriting.
Or do those first two communications scare
you? ;) Besides, a packet sniffer coul
> -Ursprüngliche Nachricht-
> Von: David G. Friedman [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 23. Januar 2006 18:10
>
> What do you mean by "do it the other way around" ?
>
Well I mean that you ONLY use cookies for the session management and not URL
Rew
s Users Mailing List'
Subject: AW: Forcing URL Rewriting over Cookies in an existing
application.
Thank you!
But it's not possible to do it the other way round in Tomcat right ?
Also I think this should belong in the web.xml and shouldn't be
container-specific, what do you think?
Bernh
CTED]
> Gesendet: Montag, 23. Januar 2006 17:28
> An: Struts Users Mailing List
> Betreff: RE: Forcing URL Rewriting over Cookies in an existing
> application.
>
>
> The same thing (disable cookies but enable url rewriting)
> should work on Tomcat 4.X and 5.X. See the
The same thing (disable cookies but enable url rewriting) should work on Tomcat
4.X and 5.X. See the "cookies"
attribute in the below url(s):
http://tomcat.apache.org/tomcat-4.0-doc/config/context.html
http://tomcat.apache.org/tomcat-5.0-doc/config/context.html
http://tomcat.apache.
OT, but I'm interested, is this available im Tomcat too?
Thanks
Bernhard
> -Ursprüngliche Nachricht-
> Von: David G. Friedman [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 23. Januar 2006 17:08
> An: Struts Users Mailing List
> Betreff: RE: Forcing URL Rewritin
http://access1.sun.com/techarticles/sessions.iws.html
Regards,
David
-Original Message-
From: Jay [mailto:[EMAIL PROTECTED]
Sent: Monday, January 23, 2006 10:53 AM
To: user@struts.apache.org
Subject: Forcing URL Rewriting over Cookies in an existing application.
Hi all, I have an
Jay wrote:
Hi all, I have an application (Sun ONE 6.1 sp2, Struts 1.02 (I guess)) that
uses Cookies for session handling and has been so for around 3/4 years. I have
a requirement where I want to force URL Rewriting even if the browser supports
cookies. Please help! Jay
This is a
Hi all, I have an application (Sun ONE 6.1 sp2, Struts 1.02 (I guess)) that
uses Cookies for session handling and has been so for around 3/4 years. I have
a requirement where I want to force URL Rewriting even if the browser supports
cookies. Please help! Jay
Broadband interface (RIA) + mail
, 2006 12:17 PM
To: Struts Users Mailing List
Subject: [OT] Cookies enabled on browsers
Hi!
My application requires, "per-session cookie" to be enabled on client
browser. How can i determine in my java code if it is enabled or not!
Deepa
The information contained in this electronic m
okie!! That sounds fine.. But for my requirements. I need the user to login
and on login i set his userid in session and also create a cookie for soem
random number storage. I do this in my first Action Class which is also
checking for Valid user. This works fine till now. but if Cookies are
wser. How can i determine in my java code if it is enabled or not!
> >> Deepa
> >
> > There is only one test that is useful for this ... set a cookie on one
> > response, and see if that cookie comes back in on the subsequent
> request.
> > There is absolutely n
dont understand the same. when i keep my browser privacy
> level
> > to "medium-High" i get a true for request.isRequestedSessionIdFromCookie()
> ,
> > and if it is "High" or "All Cookies Blocked" , i get it as false!
> > Also, i have non-persiste
On 1/16/06, Deepa Khetan <[EMAIL PROTECTED]> wrote:
> yes, i also dont understand the same. when i keep my browser privacy level
> to "medium-High" i get a true for request.isRequestedSessionIdFromCookie() ,
> and if it is "High" or "All Cookies Blocked&
yes, i also dont understand the same. when i keep my browser privacy level
to "medium-High" i get a true for request.isRequestedSessionIdFromCookie() ,
and if it is "High" or "All Cookies Blocked" , i get it as false!
Also, i have non-persistent cookies, which ideally
... set a cookie on one
response, and see if that cookie comes back in on the subsequent request.
There is absolutely no way to know, from a current request, whether or not
cookies are enabled for *your* webapp.
Craig McClanahan
Hm. So I understand request.isRequestedSessionIdFromCookie() i
this ... set a cookie on one
response, and see if that cookie comes back in on the subsequent request.
There is absolutely no way to know, from a current request, whether or not
cookies are enabled for *your* webapp.
FYI, this is why a servlet container, when a session is first initiated,
will sen
Hi!
My application requires, "per-session cookie" to be enabled on client
browser. How can i determine in my java code if it is enabled or not!
Deepa
ndering if there's a way
to say, go read this other sites cookie file.
For security reasons, you can only read cookies associated with the same
domain, so no, you can't read another site's cookie.
L.
-
To un
We're re-building a web site. No guarantees that the site will have the same
name as the old. So from my understanding of the cookie process this means a
new cookie.
(Near as I can tell a cookie file is: @[#].txt)
However, to make life easier for our customers I'm wondering if there's a way
to
May 2005 20:46
>To: Struts Users Mailing List
>Subject: Re: Newbie Question : Session Management without cookies
>
>
>Mark-
>Have you looked at mod_rewrite?
>http://httpd.apache.org/docs-2.0/misc/rewriteguide.html
>Viel Gluck,
>Martin-
>
>- Original Message
Newbie Question : Session Management without cookies
Hi - thanks for your answer. I am looking for a way to let strtuts
automatically rewrite the urls. But in the book I am reading right now I
can´t find any hint on how to do this.
Can you tell me how to rewrite the urls, so that user / pwd are
che Nachricht ---
> Von: Dave Newton <[EMAIL PROTECTED]>
> An: Struts Users Mailing List
> Betreff: Re: Newbie Question : Session Management without cookies
> Datum: Fri, 27 May 2005 11:12:59 -0400
>
> Nils Liebelt wrote:
>
> >Have a look at J2ee Specs firs
Nils Liebelt wrote:
Have a look at J2ee Specs first. So you get an idea of the session concept.
-Original Message-
From: Mark Breitner [mailto:[EMAIL PROTECTED]
Sent: Friday, May 27, 2005 4:34 PM
Subject: Newbie Question : Session Management without cookies
I just started with
cookies
Hello,
I just started with struts and wanted to implement an application that is
able to do session management (f.e. user + password) even if the user has
turned cookies off.
what is the best way to do this ?
With kind regards
Mark Breitner
--
Weitersagen: GMX DSL-Flatrates mit Tempo
cookies
Hello,
I just started with struts and wanted to implement an application that is
able to do session management (f.e. user + password) even if the user has
turned cookies off.
what is the best way to do this ?
With kind regards
Mark Breitner
--
Weitersagen: GMX DSL-Flatrates mit Tempo
Hello,
I just started with struts and wanted to implement an application that is
able to do session management (f.e. user + password) even if the user has
turned cookies off.
what is the best way to do this ?
With kind regards
Mark Breitner
--
Weitersagen: GMX DSL-Flatrates mit Tempo
On 4/22/05, Dick Starr <[EMAIL PROTECTED]> wrote:
> I am new to both Struts and web applications and in fact am writing my
> very first web application, so I may not understand how this all works.
> In the app it's possible for more than one user to be on the same PC
> (e.g. a user needs their supe
egards
Leon
>
> Thanks,
>
> Dick
>
> -Original Message-
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 21, 2005 4:49 PM
> To: 'Struts Users Mailing List'
> Subject: Re: Can you make Tomcat 5 create multiple JSESSIONID
>
egards
Leon
>
> Thanks,
>
> Dick
>
> -Original Message-
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 21, 2005 4:49 PM
> To: 'Struts Users Mailing List'
> Subject: Re: Can you make Tomcat 5 create multiple JSESSIONID
>
You can do both. You can turn on URL rewriting explicitly, despite the
fact that your browser supports cookies. I personally think that URL
rewriting is a bit messy, but others may think different. If it works
for you, why not?
On 4/22/05, Dick Starr <[EMAIL PROTECTED]> wrote:
> Althoug
Although I could use URL-rewriting, I decided against it because I want
to users to be able to also have open browser windows accessing other
sites that may want to use cookies (e.g. UPS to check shipping of an
order).
Thanks,
Dick
-Original Message-
From: K.C. Baltz [mailto:[EMAIL
Subject: Re: Can you make Tomcat 5 create multiple JSESSIONID cookies in
Firefox?
Maybe I'm understanding you wrong, but your multiple windows are all
used by
the same user, right?
In this case user name and operation id should be the same for all
'vsessions'
(virtual sessions betw
option of using URL-rewriting instead of cookies for
> your session tracking? If you've used or etc for
> all your addresses, you should be able to just switch it on. Then, each
> time a user hit a link that didn't have the jsessionid encoded, they'd
> receive
Do you have the option of using URL-rewriting instead of cookies for
your session tracking? If you've used or etc for
all your addresses, you should be able to just switch it on. Then, each
time a user hit a link that didn't have the jsessionid encoded, they'd
receive a n
f: RE: Can you make Tomcat 5 create multiple JSESSIONID
> cookies in Firefox?
>
> Thanks for the responses.
>
> Currently I store the following in session: user name
> (display it in my tiles header and use it in my tile
> definition with user has logged in), operator id (to get th
f: RE: Can you make Tomcat 5 create multiple JSESSIONID
> cookies in Firefox?
>
> Thanks for the responses.
>
> Currently I store the following in session: user name
> (display it in my tiles header and use it in my tile
> definition with user has logged in), operator id (to get th
e multiple JSESSIONID cookies in
Firefox?
Just define multiple hosts. Cookies are stored per host; host is the
mid-part of the uri.
So if you have two virtual servers like:
xxx.mydomain.net and zzz.mydomain.net the jsessionid wouldn't be shared.
So in your case, if you have control over the
Just define multiple hosts. Cookies are stored per host; host is the
mid-part of the uri.
So if you have two virtual servers like:
xxx.mydomain.net and zzz.mydomain.net the jsessionid wouldn't be shared.
So in your case, if you have control over the dns server, you could define
1000 host
Just define multiple hosts. Cookies are stored per host; host is the
mid-part of the uri.
So if you have two virtual servers like:
xxx.mydomain.net and zzz.mydomain.net the jsessionid wouldn't be shared.
So in your case, if you have control over the dns server, you could define
1000 host
I guess you cannot do this. I don't think that it is possible to start
new Firefox window in separate process. And cookies are bound to the
process. This is the implementation detail, but I guess all browser
vendors bind cookies to the process. This is not Tomcat issue.
Anyway, relying on se
for all the client windows. My application stores data in the
session context, and fails because each window is sharing the same
session variables.
I want to allow cookies in the browser, but can't find a way to make my
application work with Firefox. I can upgrade Tomcat, if that would solv
It's probably related to security settings . More specifically you may
want to look into deploying a compact privacy policy (P3P).
On Aug 5, 2004, at 7:10 AM, Rosenberg, Leon wrote:
Hi,
A bit off-topic, but maybe you have had this too...
We have an application running with struts on tomcat 5 in
There is a problem for I.E 5.5 SP1 on Windows XP
Provide the complete environment details
"Rosenberg, Leon" wrote:
> Hi,
>
>
>
> A bit off-topic, but maybe you have had this too...
>
>
>
> We have an application running with struts on tomcat 5 in an application
> running with xslt on tomcat 3 in
Hi,
A bit off-topic, but maybe you have had this too...
We have an application running with struts on tomcat 5 in an application
running with xslt on tomcat 3 in a frame.
The problem is, that explorer doesn't send the jsession cookie to the
embedded application (we tcpdumped this).
The
83 matches
Mail list logo