You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Trevor Nightingale <Tr...@sas.com> on 2003/04/04 20:17:03 UTC
Tiles Insert tag using EL expression
The jsp page listed below fails with
[ServletException in:/tiles/common/sasWizardDataSource.jsp] Error - Tag Insert : Can't get definition '${map["selectedConnection"]}'. Check if this name exist in definitions factory.'
The expression '${map["selectedConnection"]}' is not being resolved prior to the insert tag being actioned. Why is this and does anyone have any suggestions on how to work around it ?
Thanks is advance,
Trevor
Here is the page source.....
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<p>JSTL <c:out value="${sessionScope.wizardController.currentPage}" /></p>
<p>JSTL <c:set var="map" scope="page" value="${sessionScope.wizardController.wizardParameters}" /></p>
<p>JSTL <c:out value='${map["selectedConnection"]}' /></p>
<tiles:insert definition='${map["selectedConnection"]}' />
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org