Re: Losing Session Attributes

2008-02-06 Thread Dave Newton
--- daveck <[EMAIL PROTECTED]> wrote: > > Try making a copy of the request parameter map and storing that instead. > Made copy but didn't solve the problem. > > Map parameterMap - request.getParameterMap(); > session.setAttribute("PARMS", parameterMap); Just for completeness, this isn't making a

Re: Losing Session Attributes

2008-02-06 Thread Musachy Barroso
I forgot to say, after trying everything, you can add an HttpSessionAttributeListener to your application and see when the value is nulled out/replaced. http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionAttributeListener.html musachy On Feb 6, 2008 12:25 PM, Musachy Bar

Re: Losing Session Attributes

2008-02-06 Thread Musachy Barroso
Is the value in the session null or an empty map? If it is an empty map, the reason might be that when you set the value in the session between requests, the request doesn't have any parameters, setting the value to an empty map. musachy On Feb 6, 2008 11:55 AM, daveck <[EMAIL PROTECTED]> wrote:

Re: Losing Session Attributes

2008-02-06 Thread daveck
In case I wasn't clear... the attribute "PARMS" exists but loses it value. -- View this message in context: http://www.nabble.com/Losing-Session-Attributes-tp15298791p15307254.html Sent from the Struts - User mailing list archive at Nabble.com. -

Re: Losing Session Attributes

2008-02-06 Thread daveck
Laurie Harper wrote: > > > Are you sure? Have you confirmed that the session is the same in both > requests? > Yes, by checking the session id throughout the process. Laurie Harper wrote: > > > getSession(true) will create a session if one doesn't exist on the > request. If the session

Re: Losing Session Attributes

2008-02-06 Thread daveck
I'm losing the quest-input.jsp form attributes. Probably 3 out of 4 times. Session ID remains the same throughout the process. Here is part of my applicationContext.xml I'm not quite sure what you mean by needing to configure in session attributes. mgainty wrote: > > you'll definitely n

Re: Losing Session Attributes

2008-02-05 Thread mgainty
you'll definitely need configure in session attributes as in which session attributes are you losing? M-- - Original Message - Wrom: MYXOEAIJJPHSCRTNHGSWZIDREXCA To: Sent: Tuesday, February 05, 2008 3:24 PM Subject: Losing Session Attributes > > Hi, > I'm looking for some help,

Re: Losing Session Attributes

2008-02-05 Thread Laurie Harper
daveck wrote: Hi, I'm looking for some help, or some input on why I might be losing session attributes (Not the session itself). Are you sure? Have you confirmed that the session is the same in both requests? [...] I am setting session attributes in my interceptor to have available followi

Re: Losing Session attributes

2007-08-20 Thread Shardul Bhatt
Hi Laurie, The JSESSIONID is being appended to the URL, but what I noticed is that the URL displayed at the bottom of the browser when I hover over the button that opens the pop-up has a wrong action in the URL. Say it should ideally have http://localhost:8080/VWS/surveyorLookUp.do;jsessionid=12

Re: Losing Session attributes

2007-08-20 Thread Laurie Harper
If you have cookies disabled, the most likely explanation would be that the URL you use to open the pop-up is not correctly encoded; make sure it includes the jsessionid. If that's not the problem, try posting the JSP and/or Javascript code responsible for opening the 'faulty' page. L. Shardu

Re: Losing Session attributes

2007-08-19 Thread Shardul Bhatt
Hi All, I am facing a similar problem. I am using Struts 1.2. I am setting session attributes in an Action -- say Action A. Then I move to the next page and on this page I open a pop-up which calls another Action -- say Action B. Now, when I try to access the attributes set by Action A in Acti

Re: Losing Session attributes

2007-08-19 Thread j alex
Are u using Struts 1.x or 2 ? -- please paste the code from struts xml and how you are doing the redirect? ; will attempt to answer after that. -Joseph On 8/17/07, Paul Benedict <[EMAIL PROTECTED]> wrote: > If you switch domains or ports, you will lose your session. Sessions are > usually tied to

Re: Losing Session attributes

2007-08-17 Thread Paul Benedict
If you switch domains or ports, you will lose your session. Sessions are usually tied to cookies which have these restrictions. On 8/17/07, Diego Ezquerro <[EMAIL PROTECTED]> wrote: > > Hi to everyone. > > I have a problem with the session attributes in my struts app. > I have a login page that ch

SOLVED!!!! Re: Losing session attributes between requests...

2007-04-12 Thread Peter L. Berghold
Nevermind folks... I found it. I found a particularly inventive way of shooting myself in the foot when I installed a session listener. The offending line: session.setMaxInactiveInterval(3600); which was set originally to a ridiculously low value. That's what I get for developing code while