how to redirect from prepare() method in struts 2

2009-01-24 Thread sagsai
Hello friends, I have very little experience in struts 2 I have this typical requirement where I feel that I have to redirect form the prepare() method when the user is not logged in (by checking whether some session entries present or not). Actually I am trying to avoid repetitive session

Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread Dave Newton
It would be much cleaner to put that kind of logic into an interceptor rather than in a prepare() method. It would cut down significantly on code duplication. Dave sagsai wrote: Hello friends, I have very little experience in struts 2 I have this typical requirement where I feel that I have

Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread sagsai
Thank you Dave, feel like have to spend some time reading some books (which I really hate to do) on struts like struts 2 in action :-( newton.dave wrote: It would be much cleaner to put that kind of logic into an interceptor rather than in a prepare() method. It would cut down

Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread Dave Newton
sagsai wrote: Thank you Dave, feel like have to spend some time reading some books (which I really hate to do) on struts like struts 2 in action :-( The Struts 2 documentation wiki covers an awful lot of the frameworks, combined with the sample applications there's quite a bit of information

Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread sagsai
Thank you again, You saved me a lot of pain :-) newton.dave wrote: sagsai wrote: Thank you Dave, feel like have to spend some time reading some books (which I really hate to do) on struts like struts 2 in action :-( The Struts 2 documentation wiki covers an awful lot of the

RE: how to redirect from prepare() method in struts 2

2009-01-24 Thread Andy
Just got done reading Struts2 In Action and highly recommend it, as well as the documentation :) From: w...@wantii.com To: user@struts.apache.org Subject: Re: how to redirect from prepare() method in struts 2 Date: Sat, 24 Jan 2009 14:48:53 -0500 On Saturday 24 January 2009 14:11:44

Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread Wes Wannemacher
On Saturday 24 January 2009 14:56:22 Andy wrote: Just got done reading Struts2 In Action and highly recommend it, as well as the documentation :) I can say with confidence that the author is working hard to make the follow- up a first class guide on some of the plugins like Conventions and

Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread stanlick
Wes is right Dave... if the guy wants to buy a book, who are we to discourage it? Your demand will not be affected in the least! Also, I would like to give a shout out to the upcoming Struts 2 in Practice book. I have been reviewing it, and it absolutely rocks! Of course my boy Wes learned

Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread Dave Newton
The guy specifically said he wasn't psyched about reading a book. I provided alternatives. Life goes on. stanl...@gmail.com wrote: Wes is right Dave... if the guy wants to buy a book, who are we to discourage it? Your demand will not be affected in the least! Also, I would like to give a

Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread stanlick
Can I ask a personal question Dave? Does this have anything to do with your illiteracy? :) P.S. And why are you not finishing your leather bound volume? I already said I would pay in advance! On Sat, Jan 24, 2009 at 3:28 PM, Dave Newton newton.d...@yahoo.com wrote: The guy specifically said

Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread Wes Wannemacher
On Saturday 24 January 2009 17:05:04 stanl...@gmail.com wrote: P.S. And why are you not finishing your leather bound volume? I already said I would pay in advance! http://www.packtpub.com/apache-struts-2-web-application-development-beginners- guide/book /Speaking of buying books :) I feel

Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread Wes Wannemacher
On Saturday 24 January 2009 17:05:04 stanl...@gmail.com wrote: Can I ask a personal question Dave? Does this have anything to do with your illiteracy? :) P.S. And why are you not finishing your leather bound volume? I already said I would pay in advance! On that same page... Dave, did

Re: how to redirect from prepare() method in struts 2

2009-01-24 Thread Dave Newton
Wes Wannemacher wrote: On Saturday 24 January 2009 17:05:04 stanl...@gmail.com wrote: P.S. And why are you not finishing your leather bound volume? I already said I would pay in advance! Believe me--I've been trying :| It's been an... interesting process. Dave, did you write your own bio?