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
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18778594.html Sent from the Struts - User

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

2008-08-01 Thread Milan Milanovic
: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18756698.html Sent from the Struts - User mailing list archive at Nabble.com

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

2008-08-01 Thread Dave Newton
--- On Thu, 7/31/08, Milan Milanovic wrote: ((org.apache.struts2.dispatcher.SessionMap)session ).invalidate(); [...] Is this possible to erase session ? You're asking if session.invalidate() will erase the session? Really? Here's the thought process I'd use to figure that out, step-by-step.

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

2008-08-01 Thread Milan Milanovic
] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18774795.html Sent from the Struts - User mailing list archive at Nabble.com

[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: I have asked in which cases this method should be used? It should be used when you want to invalidate the session and remove all objects in the session. Dave - To unsubscribe,

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

2008-08-01 Thread Milan Milanovic
in the session. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present

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: One more question, is it possible that my session variable is erased when I redirect to another action/namespace, like this: action name=show class=mySecondAction !-- Redirect to another namespace -- result type=redirect-action

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

2008-08-01 Thread Milan Milanovic
session variables. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable

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 [EMAIL PROTECTED] wrote: Yes, I understand. But I don't remove session variable or call invalidate anymore, and when my variable is stored during the whole scenario and when I click to this redirect I get lost of my variable. Then provide the artifacts I

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

2008-08-01 Thread Al Sutton
Dave, Repeat after me; It's Friday. It's nearly the weekend. And if they don't give me what I want I'm going to take my toys away and stop playing :). Al. Dave Newton wrote: --- On Fri, 8/1/08, Milan Milanovic [EMAIL PROTECTED] wrote: Yes, I understand. But I don't remove session

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

2008-08-01 Thread Milan Milanovic
: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18777031.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

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

2008-08-01 Thread Milan Milanovic
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18777073.html

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

2008-08-01 Thread Piero Sartini
It's seems like that redirect action doesn't pass or set session to another action class. If you can't give us the code, we aren't able to help you. Session's don't need to be passed between actions. They are managed by the servlet container. But it is pretty safe to assume that Struts2 is

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

2008-08-01 Thread Al Sutton
Just making sure hurricane Dave doesn't blow through the list. If you ask for help, and someone offers, give them what they ask for. They can always ask for a translation of bits that may be critical, but unless you've rewritten large chunks of the JVM and Struts your tags and code will still

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

2008-08-01 Thread Milan Milanovic
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18777372.html Sent from the Struts - User

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

2008-08-01 Thread Milan Milanovic
session. Piero - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present

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

2008-08-01 Thread Al Sutton
:O imho first stop would be someone who will refactor them. 5 jsps and 2 classes with 5K lines of code is not a healthy program. Once they have been refactored you may find it easier to find the problem. Al. Milan Milanovic wrote: O.K. My 5 jsp which are used and two action classes have

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

2008-08-01 Thread Al Sutton
Answer : No Only your code and your site design will affect the session variables you have set and whether they are accessible. Milan Milanovic wrote: Hi Piero, O.K. Basically I'm just asking one simple question, is it possible that redirect action delete session or variables in it or maybe

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

2008-08-01 Thread Nils-Helge Garli Hegvik
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18777372.html Sent from the Struts - User

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

2008-08-01 Thread Milan Milanovic
this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18777689.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

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

2008-08-01 Thread Al Sutton
Seriously, refactor your code. 5K lines of code in 7 files could hide all manner of nasties. Milan Milanovic wrote: O.K. Thanks. I must see why my session is deleted when redirect action is called :-(. I checked everything 10 times, and I don't anything with session, so it is very wierd to me

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 [EMAIL PROTECTED] wrote: O.K. Basically I'm just asking one simple question, is it possible that redirect action delete session or variables in it or maybe not pass some, because they after redirecting I don't have that variable in session ? NO. There is

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

2008-08-01 Thread Al Sutton
Thhhaaa she blows!! (I use she in the shipping sense of the word... i.e. everythings a she when you're at sea for that long and it's all blokes). Dave Newton wrote: --- On Fri, 8/1/08, Milan Milanovic [EMAIL PROTECTED] wrote: O.K. Basically I'm just asking one simple question, is

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: Thhhaaa she blows!! *lol* Tropical Depression Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

2008-08-01 Thread Dave Newton
Seriously, refactor your code. 5K lines of code in 7 files could hide all manner of nasties. We have a 1M class where I'm at now. That's *1M* of source. 30k+ lines, mostly if-elseif. It broke our cyclometric complexity meter, had to put in a bigger fuse. It makes Eclipse cry. It makes *me*

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

2008-08-01 Thread Milan Milanovic
you've provided. Hurricane Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session

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

2008-08-01 Thread Al Sutton
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 is about the SQL JDBC Drivers and is not about porn. Dave Newton wrote: --- On Fri, 8/1/08, Al Sutton [EMAIL PROTECTED] wrote: Thhhaaa she blows!!

[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: 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 is about the SQL JDBC Drivers and is not about porn. Well, they're both just as exciting. Right?

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
-if-session-variable-is-present-tp18716278p18778274.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18778594.html Sent from

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
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18778594.html Sent from the Struts - User mailing list

Re: [S2] Testing if session variable is present

2008-07-31 Thread Milan Milanovic
-- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18716278.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Re: [S2] Testing if session variable is present

2008-07-31 Thread Dave Newton
--- On Thu, 7/31/08, Milan Milanovic [EMAIL PROTECTED] wrote: No one have any idea how to access session variable in jsp in this kind of simple scenario ? That's one explanation. So, scenario is like this: [...] I am unable to duplicate the inability to test session variables for

Re: [S2] Testing if session variable is present

2008-07-31 Thread Milan Milanovic
] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18756012.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [S2] Testing if session variable is present

2008-07-31 Thread Milan Milanovic
, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18756151.html Sent from the Struts - User mailing list archive at Nabble.com

Re: [S2] Testing if session variable is present

2008-07-31 Thread Piero Sartini
No one have any idea how to access session variable in jsp in this kind of simple scenario ? You may access your session variable just like you would do without S2. There is no difference. Then use either the s:test tag from struts or c:if from the standard tag library. Piero

Re: [S2] Testing if session variable is present

2008-07-31 Thread Dave Newton
--- On Thu, 7/31/08, Milan Milanovic wrote: I think that you didn't understand what is my scenario. I'm reasonably certain that I did. What is the problem ? I still don't know, because you still didn't include the code I asked for. That would have saved at least one posting (this one). I

Re: [S2] Testing if session variable is present

2008-07-31 Thread Milan Milanovic
://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18756303.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

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

2008-07-31 Thread Dave Newton
--- On Thu, 7/31/08, Milan Milanovic wrote: (getSession().put(variable, new Boolean(true)); Use Boolean.TRUE rather than instantiating a new object. Note also that the Javadocs for Boolean state in big bold letters: Note: It is rarely appropriate to use this constructor. Unless a new instance

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

2008-07-31 Thread Milan Milanovic
-if-session-variable-is-present-tp18716278p18756698.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Re: [S2] Testing if session variable is present

2008-07-31 Thread [EMAIL PROTECTED]
] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18756303.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

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

2008-07-31 Thread [EMAIL PROTECTED]
: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18756698.html Sent from the Struts - User mailing list archive at Nabble.com

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

2008-07-31 Thread Milan Milanovic
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18756698.html Sent from the Struts - User mailing list archive

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

2008-07-31 Thread [EMAIL PROTECTED]
, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18756698.html Sent from the Struts - User mailing list archive at Nabble.com

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

2008-07-31 Thread Milan Milanovic
://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18756698.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: [S2] Testing if session variable is present

2008-07-30 Thread Milan Milanovic
variable is present, and based on that to show some struts view code or not. How can I do that ? -- Thx, Milan -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18716278.html Sent from the Struts - User mailing list archive at Nabble.com

Re: [S2] Testing if session variable is present

2008-07-30 Thread Marcos Hermida
[EMAIL PROTECTED]wrote: Hi, I need to test in jsp if some session variable is present, and based on that to show some struts view code or not. How can I do that ? -- Thx, Milan -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present

Re: [S2] Testing if session variable is present

2008-07-30 Thread Milan Milanovic
, and based on that to show some struts view code or not. How can I do that ? -- Thx, Milan -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18716278.html Sent from the Struts - User mailing list archive at Nabble.com

Re: [S2] Testing if session variable is present

2008-07-30 Thread Milan Milanovic
in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18716278.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [S2] Testing if session variable is present

2008-07-30 Thread Milan Milanovic
need to test in jsp if some session variable is present, and based on that to show some struts view code or not. How can I do that ? -- Thx, Milan -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18716278.html Sent from the Struts

[S2] Testing if session variable is present

2008-07-29 Thread Milan Milanovic
Hi, I need to test in jsp if some session variable is present, and based on that to show some struts view code or not. How can I do that ? -- Thx, Milan -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18716278.html Sent from

Re: [S2] Testing if session variable is present

2008-07-29 Thread Felipe Lorenz
to test in jsp if some session variable is present, and based on that to show some struts view code or not. How can I do that ? -- Thx, Milan -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18716278.html Sent from the Struts - User

Re: [S2] Testing if session variable is present

2008-07-29 Thread Ylva D
in jsp if some session variable is present, and based on that to show some struts view code or not. How can I do that ? -- Thx, Milan -- View this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18718079.html Sent from the Struts - User

Re: [S2] Testing if session variable is present

2008-07-29 Thread Milan Milanovic
this message in context: http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18716278.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED