Hello, I am having a problem with using getAsString in a sub-tile. I have a 'root' and a 'tile.login' which extends the 'root'.
<definition name="root" path="/tiles-layouts/root.jsp"> <put name="titleString" value="CHANGE-ME"/> <put name="content" value="CHANGE-ME"/> </definition> <definition name="tile.login" extends="root"> <put name="titleString" value="Login"/> <put name="content" value="/login.jsp"/> </definition> The root.jsp uses <tiles:insert attribute="content"/>. The login.jsp uses <tiles:getAsString name="titleString"/>. That's when I get the following error: 14:37:37,793 ERROR [HttpProcessor[8080][2]] [Engine] ----- Root Cause ----- javax.servlet.jsp.JspException: Error - tag.getAsString : attribute 'titleString' not found in context. Check tag syntax at org.apache.struts.taglib.tiles.GetAttributeTag.doEndTag(GetAttributeTag.java :191) If I put <tiles:getAsString name="titleString"/> in root.jsp, I do not get that exception. I expect the 'titleString' attribute to be in the context of 'login.jsp' page. Please explain what I need to do to overcome this problem. Thanks, Niranjan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]