I have read through the documentation and haven't seen this example (I may be blind). The error I get is : [ServletException in:/header.jsp] Error - tag.getAsString : attribute 'title' not found in context. Check tag syntax'

troy


Greg Reddin said the following on 5/5/2006 3:01 PM:
Have you tried the instructions in the tiles documentation?

    http://struts.apache.org/struts-action/struts-tiles/

I think it describes your use case. Are you trying this and getting some kind of error you can send us?

Thanks,
Greg

On May 5, 2006, at 1:33 PM, Troy Bull wrote:

Greetings

I am new to tiles and so far I like it. I have a question though. Seems like it should be easy to do but I haven't seen how yet. I will try to describe the situation as concisely as I can. This can be reproduced with just 2 jsp files.

layout.jsp (interesting lines only)

<title>
     <tiles:getAsString name="title"/>
</title>
</head>
<HR>
<tiles:insert attribute="header"/>

header.jsp

<hr><tiles:getAsString name="title"/></h2>
<hr>



int my tiles-defs.xml I have

 <definition name="main.layout" path="/layout.jsp">
    <put name="title"  value="This is the title"/>
    <put name="header" value="/header.jsp"/>
</definition>


And finally, what I want is to display in the browser "This is the title" inside an H2 tag so that on each screen of my app the user gets visual feed back for what page they are on.

This seems to me like something I should be able to do but I dont know how, anyone with any tips I am greatfull.

thanks
troy

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




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


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

Reply via email to