I've tried accessing an attribute set by one of my session listener. It works 
well. I have revision 868.
You can checkout stripes latest version from svn and see if it's related to 
stripes.

Christian


________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Farouk Alhassan
Sent: Monday, April 07, 2008 5:08 PM
To: Stripes Users List
Subject: Re: [Stripes-users] Accessing HttpSession stripes(method attached)


have to mention that this is an existing application that i'm trying to change 
the front end to use stripes as part of an upgrade process


________________________________
Date: Mon, 7 Apr 2008 16:50:32 -0400
From: [EMAIL PROTECTED]
To: [email protected]
Subject: Re: [Stripes-users] Accessing HttpSession stripes(method attached)

Farouk,

Can you show us the code that creates the "loginBean" in your sessionListener.  
Can you show us where and how you define your session listener?

Regards,
David

Farouk Alhassan wrote:

haha.
its sometimes funny how much frustration can cause. that was all mixed up...I 
have been on this since 10am and its 10pm here. i have left work and still 
jumping from site to site looking for a solution.

this is what i intended to say: i will copy the method

  @DefaultHandler
  public Resolution convert() throws Exception{
    LoginBean login = (LoginBean) 
getContext().getRequest().getSession().getAttribute("loginBean");
    if(login == null)System.out.println("USR IS NULL 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
    init();
    if(login.isLoggedIn())
    return new ForwardResolution("/financials02.jsp");
    else
return new ForwardResolution("/login.jsp");
  }
it keeps printing USR IS NULL !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!



________________________________
News, Sports, Entertainment and Weather on your mobile. Text MSN to 63463 
Now.<http://mobile.uk.msn.com/pc/msn_content.aspx>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to