attached
From: [EMAIL PROTECTED]
To: [email protected]
Date: Mon, 7 Apr 2008 17:03:25 -0400
Subject: Re: [Stripes-users] Accessing HttpSession stripes(method attached)
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
_________________________________________________________________
Amazing prizes every hour with Live Search Big Snap
http://www.bigsnapsearch.com<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<description>
Money Transfer Ghana
</description>
<context-param>
<description>Switch off caching. You can remove this parameter or comment it out when this app goes into production.</description>
<param-name>jmaki-usecache</param-name>
<param-value>false</param-value>
</context-param>
<listener>
<listener-class>com.console.web.FrontContextListener</listener-class>
</listener>
<listener>
<listener-class>com.console.web.FrontSessionListener</listener-class>
</listener>
<filter>
<filter-name>FrontFilter</filter-name>
<filter-class>com.console.web.FrontFilter</filter-class>
</filter>
<filter>
<description>
Provides essential configuration and request processing services
for the Stripes framework.
</description>
<display-name>Stripes Filter</display-name>
<filter-name>StripesFilter</filter-name>
<filter-class>net.sourceforge.stripes.controller.StripesFilter</filter-class>
<!-- REQUIRED init parameter for the Stripes Filter. -->
<init-param>
<param-name>ActionResolver.Packages</param-name>
<param-value>com.console.web.event</param-value>
</init-param>
</filter>
<servlet>
<servlet-name>XmlHttpProxy</servlet-name>
<servlet-class>jmaki.xhp.XmlHttpProxyServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>StripesDispatcher</servlet-name>
<servlet-class>net.sourceforge.stripes.controller.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<filter-mapping>
<filter-name>StripesFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>StripesFilter</filter-name>
<servlet-name>StripesDispatcher</servlet-name>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>FrontFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<servlet-mapping>
<servlet-name>XmlHttpProxy</servlet-name>
<url-pattern>/xhp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>StripesDispatcher</servlet-name>
<url-pattern>/dispatcher</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>StripesDispatcher</servlet-name>
<url-pattern>*.action</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>home.jsp</welcome-file>
</welcome-file-list>
</web-app>
-------------------------------------------------------------------------
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