Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-02 Thread Milan Milanovic
Well, actually no. I work through my application 30 mins. with my session o.k., but when I came to redirect action it dissapear. I will create test application with nearly empty action class and jsp-s to try if redirect action to another namespace really delete session, as it happes to me. I

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
Captin... The cyclometric complexity meter is at max... I canne give it any more. Reflection can seriously help with big else-ifs. If your switching on a variable use the variable name and value as part of the class name and then do; Class blahHandlerClass = Class.forName(

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
So you'd choose JDBC driver source code over porn and you called me wierd :). Dave Newton wrote: --- On Fri, 8/1/08, Al Sutton [EMAIL PROTECTED] wrote: Don't worry, I've just written a rant about not relying on dirty reads and had to re-word it to include the footnote This discussion

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Milan Milanovic
Hi Dave, one short question, don't be angry ;-). The link which when clicked action class lost its session looks like this: http://localhost:8080/myproject/show.action?dojo.preventCache=1224214242324id=4 Is it possible that session is not passed through this link ? -- Regards, Milan

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
Milan, Please read up on how sessions work. They are NOT passed via URLs unless you have cookies disabled, URL rewriting enabled on your appserver, and a very sick sense of what a normal configuration is. Al. Milan Milanovic wrote: Hi Dave, one short question, don't be angry ;-). The

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Dave Newton
--- On Fri, 8/1/08, Al Sutton [EMAIL PROTECTED] wrote: It splits your code into more manageable chunks, [...] You're right, it does split *my* code. Unfortunately (well... fortunately, really) that code isn't mine and I'm forbidden from even looking at it. Dave

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Dave Newton
--- On Fri, 8/1/08, Al Sutton wrote: So you'd choose JDBC driver source code over porn And it's not filtered at work! Win-win! Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
A Medusa code. So named because anyone who looks at it gets so petrified they turn to freeze up and turn to stone. I once worked for a company where one of their classes was about 200K in size, the reason was the developer thought that in every you needed to catch every exception thrown,

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
Tonight on the Struts 2 comedy channel; How your employer is ensuring you enjoy your day by only filtering out the boring websites to avoid you having to waste time checking them out :). Dave Newton wrote: --- On Fri, 8/1/08, Al Sutton wrote: So you'd choose JDBC driver source code over

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Milan Milanovic
I know that they are passed through serlvet, I'm just wondering if struts makes some error there. Could you be positive that Struts 2.0.11.1 doesn't do anything with session, i.e., session remains intact and session is set for folowing action in case of redirect action ? -- Regards, Milan Al

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Dave Newton
--- On Fri, 8/1/08, Milan Milanovic wrote: Could you be positive that Struts 2.0.11.1 doesn't do anything with session, i.e., session remains intact and session is set for folowing action in case of redirect action? Session handling is no different for a redirectAction than any other

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread Al Sutton
I refer you to the answer on sessions I gave you some emails ago. You **REALLY** should read how session work. They are not passed through a servlet. Al. Milan Milanovic wrote: I know that they are passed through serlvet, I'm just wondering if struts makes some error there. Could you be

Re: [Friday] Re: [OT] RE: RE: Re: [OT] new Boolean(true)? Re: [S2] Testing if session variable is present

2008-08-01 Thread stanlick
Is it possible you have the server session-time-to-live set to a very small duration of time? This might explain why the sessions are disappearing. On Fri, Aug 1, 2008 at 11:47 AM, Milan Milanovic [EMAIL PROTECTED]wrote: I know that they are passed through serlvet, I'm just wondering if