Hi all: In one of my events I first add some message, and then redirect the page by flash scope:
getContext().addMessage(“…”); return createRedirect(“/jsp/test.jsp”).flash(this); And in the jsp file above, I try to display the message if any: <%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> //… <c:if test="${!empty actionBean.context.messages}"> <div class="success"><s:messages /></div> </c:if> //… However, a NullPointerException is thrown after doing this, I debug into Stripes code only find that the returned FlashScope is null: ActionBeanContext.getMessages(ActionBeanContext.java:191) But if I remove the c:if tag and use <s:messages /> only, everything works fine. Is there any logical explanation for this? How should I detect whether there is any message in the context? Thanks a lot Best Regards, Hubert -- View this message in context: http://www.nabble.com/Weird-behavior-for-flash-scope-and-stripes-messages-tag-tp24753304p24753304.html Sent from the stripes-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
