struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manopriya Jagadeesan , Tidel Park - Chennai" <Manopri...@hcl.in>
Subject RE: Tiles Question
Date Sat, 06 May 2006 04:18:10 GMT
Hi,

http://www.roseindia.net/struts/struts_tiles.shtml
 will give you a good start for tiles.



-----Original Message-----
From: Greg Reddin [mailto:greddin@apache.org] 
Sent: Saturday, May 06, 2006 1:32 AM
To: Struts Users Mailing List
Subject: Re: Tiles Question

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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message