[ http://mc4j.org/jira/browse/STS-229?page=all ]
Tim Fennell resolved STS-229:
-----------------------------
Resolution: Fixed
Fix Version: Release 1.4
I went with your original suggestion of a stack of ActionBeans.
> ActionBean request attribute not set correctly when rendering multiple
> <jsp:includes> of ActionBeans
> ----------------------------------------------------------------------------------------------------
>
> Key: STS-229
> URL: http://mc4j.org/jira/browse/STS-229
> Project: Stripes
> Type: Bug
> Components: Context Management
> Versions: Release 1.3.2
> Environment: JOnAS 4.8 with embedded Tomcat 5.5
> Reporter: Gary Moselen
> Assignee: Tim Fennell
> Fix For: Release 1.4
>
> I have a layout-definition that includes a jsp:include to an action bean:
> <s:layout-definition>
> <s:layout-component name="top-left">
> <jsp:include page="/core/demographics.action"/>
> </s:layout-component>
> </s:layout-definition>
> The DemographicsActionBean class is behind the
> "/core/demographics.action" URL
> I render this layout in another JSP which is backed by ChartActionBean:
> <s:layout-render name="/jsp/common/layout/topRowLayout.jsp"/>
> <c:forEach var="order" items="${actionBean.orders}">
> and then I hit an error:
> trace:javax.servlet.jsp.el.ELException: Unable to find a value for
> "orders" in object of class
> "com.orchestral.orders.web.core.stripes.action.DemographicsActionBean"
> using operator "." at
> org.apache.commons.el.Logger.logError(Logger.java:481) at
> org.apache.commons.el.Logger.logError(Logger.java:498) at
> org.apache.commons.el.Logger.logError(Logger.java:611) at
> org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:340) at
> It seems like the "actionBean" request attribute is set to the
> DemographicsActionBean while it is processing the jsp:include for
> demographics.action and that it does not replace this when it goes back to
> rendering the containing action. The orders attribute is on ChartActionBean
> and not DemographicsActionBean.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development