Hello,

I am trying flash scope feature for the first time exactly as it shown in a wiki and for the same scenario. (page after login).

 

 

The code looks like this

 

@UrlBinding(“test1.action”)

public class SwitchPortalAction extends BaseAbstractAction implements Serializable {

….

    @DefaultHandler

    public Resolution processPage() {

        return new RedirectResolution(“some_page.jsp”)).flash(this);

    }

 

 

Exception looks like this

 

 

2008-12-17 19:40:23,742] [alpha               ] [sfltlg-hlsg3b1      ] [platform            ] [ERROR] [Catalina].[localhost].[/shell].[StripesDispatcher]] - Servlet.service() for servlet StripesDispatcher threw exception

java.lang.NullPointerException

            at net.sourceforge.stripes.controller.FlashScope.getContainer(FlashScope.java:343)

            at net.sourceforge.stripes.controller.FlashScope.requestComplete(FlashScope.java:152)

            at net.sourceforge.stripes.controller.StripesFilter.flashOutbound(StripesFilter.java:241)

            at net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:187)

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

            at com.markettools.platform.webapp.view.admin.BaseSecurityFilter.doFilter(BaseSecurityFilter.java:113)

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

 

I know that some stuff has been fixed in this area in version 1.5, but we cant upgrade just yet.  This looks too basic to not work, so I am thinking maybe there is something wrong with some configuration.

 

The flow of events is the following : user submits form with login/pwd, that gets forward to login.action that forwards (in case of success) to home.action that forwards to home.jsp, which has several

<jsp:include page="test1.action />

<jsp:include page="test2.action />

 

I am trying to change resolution to redirect with flash on test1.action – should that work in theory?

 

Thanks