Hi All!

I am attempting to call a tiles:getAsString from a JSP page which is an
attribute in the tiles definition.

Example:
===============================================
<definition name="au.com.carsales.csApp.layouts.default"
path="/WEB-INF/jsp/layouts/default.jsp">
        <put name="page_title" value="My Page Title" />
        <put name="html_head" value="/WEB-INF/jsp/html_head.jsp" />
        <put name="header" value="/WEB-INF/jsp/header.jsp" />
        <put name="left_content" value="/WEB-INF/jsp/left_content.jsp" />
        <put name="main_content" value="" />
        <put name="footer" value="/WEB-INF/jsp/footer.jsp" />
</definition>

And, in /WEB-INF/jsp/html_head.jsp I have,
<title> <tiles:getAsString name="page_title" /> </title>
===============================================

However, I am getting the following error:
===============================================
[ServletException in:/WEB-INF/jsp/html_head.jsp] Error - tag.getAsString :
attribute 'page_title' not found in context. Check tag syntax'
javax.servlet.jsp.JspException: Error - tag.getAsString : attribute
'page_title' not found in context. Check tag syntax at
org.apache.struts.taglib.tiles.GetAttributeTag.doEndTag(GetAttributeTag.java
:204)
===============================================

By the looks of it, I believe that I cannot do this?

Is there an alternative available? Or am I doing something incorrectly ?


Cheers and TIA,

Kunal



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to