[EMAIL PROTECTED] (Gary VanMatre) wrote on 09/09/2005 11:49:12 AM:

> There are several ways to handle this, maybe too many options:
> 
> From a view controller:
> 
>    String userName = getBean("sessionScope.userName");

Thanks for your response Gary. Maybe I misunderstand your suggestion, but 
I think you are telling me how to get "userName". But here's my real 
question: don't you end up writing code like:

String userName = getBean("sessionScope.userName");
if (userName == null) return "loggedOff";

in *every* action method in *every* backing bean of the application? 

So I want to know is there a good way to not have to write this so many 
times (other than by extending AbstractViewController etc. as I mentioned 
in my original note..)..? Am i not making sense..(:(

> 
> Gary
> 
Thanks again,
Geeta

Reply via email to