Re: Session ID

2008-08-15 Thread Hrvoje Ban
On Fri, Aug 15, 2008 at 2:39 PM, "Stephan Schröder" <[EMAIL PROTECTED]> wrote: > Try this one: > ServletActionContext.getRequest().getSession().getId(); > > /Stephan That's what I was looking for. Thanks! - To unsubscribe, e-mail

Re: Session ID

2008-08-15 Thread Stephan Schröder
: "Struts Users Mailing List" > Betreff: Re: Session ID > On Fri, Aug 15, 2008 at 9:47 AM, Chris Pratt <[EMAIL PROTECTED]> > wrote: > > I usually implement ServletRequestAware so that I can call > > request.getSession().getId(). I would love to see them add th

Re: Session ID

2008-08-15 Thread rajanikanth786
12:45 AM, Hrvoje Ban <[EMAIL PROTECTED]> wrote: > Hi! > > How can I get session ID from inside a Struts2 interceptor? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >

Re: Session ID

2008-08-15 Thread rajanikanth786
Hi, Can u tell me where you are unable to get the Session ID in struts2. thanks, rajanikanth

Re: Session ID

2008-08-15 Thread Hrvoje Ban
On Fri, Aug 15, 2008 at 9:47 AM, Chris Pratt <[EMAIL PROTECTED]> wrote: > I usually implement ServletRequestAware so that I can call > request.getSession().getId(). I would love to see them add that value to > the SessionMap but it's not there at the moment. > (*Chris*) That would work for a act

Re: Session ID

2008-08-15 Thread Chris Pratt
; > How can I get session ID from inside a Struts2 interceptor? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >

Session ID

2008-08-15 Thread Hrvoje Ban
Hi! How can I get session ID from inside a Struts2 interceptor? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: struts2 access session Id

2008-05-14 Thread Jakub Milkiewicz
I've found the same code on Struts2 web page. Thanks anyway 2008/5/14 krishna chary <[EMAIL PROTECTED]>: > use this code you will get session id > code is > > ServletActionContext.*getRequest*().getSession().getId(); >

Re: struts2 access session Id

2008-05-14 Thread krishna chary
use this code you will get session id code is ServletActionContext.*getRequest*().getSession().getId();

Re: struts2 access session Id

2008-05-13 Thread Jakub Milkiewicz
I had the same idea when i mentioned Servlet Config Interceptor below but I just thought there is an easier way. Anyway thanks for reply and it looks like i need to do just like that. 2008/5/13 Laurie Harper <[EMAIL PROTECTED]>: > Jakub Milkiewicz wrote: > > > Hi > > I have a problem with Strut

Re: struts2 access session Id

2008-05-13 Thread Laurie Harper
Jakub Milkiewicz wrote: Hi I have a problem with Struts 2. I am looking for a way to access httpsession id? I have tried using ActionContext.getContext().getSession().get("id") but it returns null. i 've read there is a possibility to use Servlet Config Interceptor

struts2 access session Id

2008-05-13 Thread Jakub Milkiewicz
Hi I have a problem with Struts 2. I am looking for a way to access httpsession id? I have tried using ActionContext.getContext().getSession().get("id") but it returns null. i 've read there is a possibility to use Servlet Config Interceptor

RE: Session Id for the HTTP Session in Struts application

2006-05-01 Thread George.Dinwiddie
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSession.htm l#getId() > -Original Message- > From: Raghuveer [mailto:[EMAIL PROTECTED] > Sent: Monday, May 01, 2006 3:16 AM > To: user@struts.apache.org > Subject: FW: Session Id for the HTTP Session in Str

Re: FW: Session Id for the HTTP Session in Struts application

2006-05-01 Thread Dave Newton
Raghuveer wrote: > In my web application when accessing few pages i need to get session id. > I need to store this session id in Database during the user navigation as > per my requirement. > For my stored procedures i need to send this session id as IN parameter. > > What

FW: Session Id for the HTTP Session in Struts application

2006-05-01 Thread Raghuveer
-Original Message- From: Raghuveer [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 12:40 PM To: 'Struts Users Mailing List' Subject: Session Id for the HTTP Session in Struts application In my web application when accessing few pages i need to get session id. I need to

Re: [OT] How to determine if a session id is still valid

2005-12-09 Thread gramani
ooper <[EMAIL PROTECTED]> wrote on 12/09/2005 05:44:59 PM: > Given a session id -- request.getSession().getId() which has been > previously saved to a db, how can I determine if it is still a > valid/active session? TIA, Brian Barnett > Hi Brian, I don't really know th

[OT] How to determine if a session id is still valid

2005-12-09 Thread ooper
Given a session id -- request.getSession().getId() which has been previously saved to a db, how can I determine if it is still a valid/active session? TIA, Brian Barnett Broadband interface (RIA) + mail box saftey = http://Struts_User_List.roomity.com *Your* clubs, no sign up to read, ad

Re: How to disable URL rewriting for session id?

2005-07-04 Thread Julian Kerr
David G. Friedman wrote: I just skimmed through cvs and have this idea for you: Edit a copy of the Html Taglib's helper class, org.apache.struts.taglibs.TagUtils, so any methods that would pull in the session variable to append to the new URL don't do that. When it's built, put it under WEB-IN

RE: How to disable URL rewriting for session id?

2005-07-03 Thread David G. Friedman
David -Original Message- From: Julian Kerr [mailto:[EMAIL PROTECTED] Sent: Monday, July 04, 2005 1:25 AM To: Struts Users Mailing List Subject: Re: How to disable URL rewriting for session id? Ahh, the problem spreadeth... also need to use plain old forms, which means no struts help there e

Re: How to disable URL rewriting for session id?

2005-07-03 Thread Julian Kerr
Ahh, the problem spreadeth... also need to use plain old forms, which means no struts help there either. Guess this boils down to either finding a way to tell struts to stop rewriting url's, or another moving to another context... Julian Wendy Smoak wrote: From: "Julian Kerr" <[EMAIL PROT

Re: How to disable URL rewriting for session id?

2005-07-01 Thread Wendy Smoak
From: "Julian Kerr" <[EMAIL PROTECTED]> > > A plain old html link would do the trick, but I'm keen to know if there > is a way to control the behaviour struts tags. > Just based on the docs, I'd say no... but I haven't looked any further than that. http://struts.apache.org/userGuide/struts-html.h

Re: How to disable URL rewriting for session id?

2005-07-01 Thread Julian Kerr
Michael Jouravlev wrote: On 6/30/05, Julian Kerr <[EMAIL PROTECTED]> wrote: The html:link tag automatically applies URL rewriting to maintain session state in the absence of cookies. Is it possible to disable this feature? Have you tried <%@ page session="false" %> ? Michael.

Re: How to disable URL rewriting for session id?

2005-06-30 Thread Michael Jouravlev
On 6/30/05, Julian Kerr <[EMAIL PROTECTED]> wrote: > The html:link tag automatically applies URL rewriting to maintain > session state in the absence of cookies. Is it possible to disable this > feature? Have you tried <%@ page session="false" %> ? Michael. --

How to disable URL rewriting for session id?

2005-06-30 Thread Julian Kerr
Dear All, The html:link tag automatically applies URL rewriting to maintain session state in the absence of cookies. Is it possible to disable this feature? [I'm using Resin in a shared environment. Resin considers the sessionid as part of the URL address, and hence I get 404 errors.] Also

Re: [OT] Session ID in the URL

2005-06-17 Thread Michael Jouravlev
On 6/17/05, Adam Hardy <[EMAIL PROTECTED]> wrote: > getPathInfo() might be interesting for this. Have you tried it Michael? > I have use getPathInfo in my code but without setting up my appserver > and running it I can't tell. No, getPathInfo does not work. I guess I will just stick my own key val

Re: [OT] Session ID in the URL

2005-06-17 Thread Adam Hardy
On 16/06/05 22:47 Max Cooper wrote: I think this is a weird requirement, and it may be worth re-evaluating why you want to know this (are you fighting the technology, or leveraging it?). But here are two tips that might help if you decide that you really need to know: 1. request.getPathInfo() --

Re: [OT] Session ID in the URL

2005-06-16 Thread Martin Gainty
ginal Message - From: "Michael Jouravlev" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 16, 2005 12:28 PM Subject: Re: [OT] Session ID in the URL On 6/16/05, Adam Hardy <[EMAIL PROTECTED]> wrote: It seems to be hard-coded behaviour th

RE: [More OT] Re: [OT] Session ID in the URL

2005-06-16 Thread David G. Friedman
+1. > From: Dave Newton [mailto:[EMAIL PROTECTED] > > Is anybody else getting a lot of message duplicates > this evening? We're having email server strangeness > so I'm not sure if it's me or... uh... not me. - To unsubscribe

[More OT] Re: [OT] Session ID in the URL

2005-06-16 Thread Dave Newton
Is anybody else getting a lot of message duplicates this evening? We're having email server strangeness so I'm not sure if it's me or... uh... not me. Dave Michael Jouravlev wrote: On 6/16/05, Adam Hardy <[EMAIL PROTECTED]> wrote: Even quicker would be to check if you have the first requ

[OT] Session ID in the URL

2005-06-16 Thread Michael Jouravlev
superinterface.com/wizard/signupWizard.do;jsessionid=987234?cmd=Init The page was loaded with one simple GET, session was established, and server rewrote the link to include session ID. From here you can either click the link to sign up (GET), or try to login (POST). If you submit with POST, wizard

Re: [OT] Session ID in the URL

2005-06-16 Thread Max Cooper
adds jsessionid to > the URL > * Browser navigates to the redirected location, it replies with > jsessionid in the cookie, so next time server won't rewrite URL. > But!!! There is another jsessionid, which was appended to the URL in > the redirected request. I want to

Re: [OT] Session ID in the URL

2005-06-16 Thread Michael Jouravlev
On 6/16/05, Adam Hardy <[EMAIL PROTECTED]> wrote: > Even quicker would be to check if you have the first request that > establishes the session, and then put some token in the form or > querystring, to mimic the JSESSIONID. Then you can just check > for your token. Yes, I guess I can do that. > I

Re: [OT] Session ID in the URL

2005-06-16 Thread Adam Hardy
On 16/06/05 17:13 Adam Hardy wrote: It seems to be hard-coded behaviour that you can't do anything about unless you want to write some javascript to check the URL and put a token in the query string for the next request. Stupid me. Even quicker would be to check if you have the first reque

Re: [OT] Session ID in the URL

2005-06-16 Thread Michael Jouravlev
On 6/16/05, Adam Hardy <[EMAIL PROTECTED]> wrote: > It seems to be hard-coded behaviour that you can't do anything about > unless you want to write some javascript to check the URL and put a > token in the query string for the next request. Nah, I cannot rely on Javascript. I guess I should drop t

Re: [OT] Session ID in the URL

2005-06-16 Thread Adam Hardy
request to an action mapping, I redirect to same action mapping to clean URL up. After redirection URL will be clean, because session ID will be contained in cookie only. With isRequestedSessionIdFromURL() returning false I cannot do what I need. And doing two redirects each time is not acceptable

Re: [OT] Session ID in the URL

2005-06-16 Thread Michael Jouravlev
On 6/16/05, Adam Hardy <[EMAIL PROTECTED]> wrote: > It's not stupid, it returns a boolean informing you where the > session.getId() gets its info from. Makes sense to me. Makes sense to me too, but I also want to know is there session ID in the URL. Any advice how to find this

Re: [OT] Session ID in the URL

2005-06-16 Thread Adam Hardy
that redirected request contains *both* session ID in cookie and session ID in the rewritten URL. Stupid isRequestedSessionIdFromURL() returns false, because it thinks that I should be happy by isRequestedSessionIdFromCookie() returning true. But I want to know both pieces of info: that there is sessi

Re: [OT] Session ID in the URL

2005-06-15 Thread Michael Jouravlev
t to detect this one. The problem is, that redirected request contains *both* session ID in cookie and session ID in the rewritten URL. Stupid isRequestedSessionIdFromURL() returns false, because it thinks that I should be happy by isRequestedSessionIdFromCookie() returning true. But I want to kn

Re: [OT] Session ID in the URL

2005-06-15 Thread Michael Jouravlev
D'oh! Thanks, David! On 6/15/05, David G. Friedman <[EMAIL PROTECTED]> wrote: > See the HttpServletRequest API for these methods: > > boolean isRequestedSessionIdFromUrl() (pre 2.1) > boolean isRequestedSessionIdFromURL() (2.1 or later) > boolean isRequestedSessionIdFromCookie() > > Regards, > D

Re: [OT] Session ID in the URL

2005-06-15 Thread Dave Newton
David G. Friedman wrote: See the HttpServletRequest API for these methods: boolean isRequestedSessionIdFromUrl() (pre 2.1) boolean isRequestedSessionIdFromURL() (2.1 or later) boolean isRequestedSessionIdFromCookie() This answer is better than mine :) Must... keep... reading... JavaDocs..

RE: [OT] Session ID in the URL

2005-06-15 Thread David G. Friedman
: Wednesday, June 15, 2005 4:16 PM To: Struts Users Mailing List Subject: [OT] Session ID in the URL Does anyone know, how to find out that URL contains session ID in it? Usually this happens only once in the beginning of a session, if browser supports cookies. I even don't need the value itself, I

Re: [OT] Session ID in the URL

2005-06-15 Thread Dave Newton
Michael Jouravlev wrote: Does anyone know, how to find out that URL contains session ID in it? Session ID is separated with semicolon, and is not treated as query parameter, so I cannot read as parameter. Check for "sessionId" in getQueryStr

[OT] Session ID in the URL

2005-06-15 Thread Michael Jouravlev
Does anyone know, how to find out that URL contains session ID in it? Usually this happens only once in the beginning of a session, if browser supports cookies. I even don't need the value itself, I just want to know that fact, that session ID is appended to URL, not sent as cookie. Session