Is the listener registered in web.xml?
Christian
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Farouk Alhassan
Sent: Monday, April 07, 2008 4:55 PM
To: Stripes Users List
Subject: Re: [Stripes-users] Accessing HttpSession stripes(method attached)
i have attached all my files....please review them and let me know if sth is
wrong
________________________________
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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
________________________________
Have you played Fishticuffs? Get fish-slapping on
Messenger<http://www.fishticuffs.co.uk>
-------------------------------------------------------------------------
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