The Tiles framework provides a way to build web pages by assembling
"page fragment". The Tiles Definition contains one assemblage that can
be reuse in other assemblage. The definition name is a unique identifier
of this assemblage, not an url. So, you need to link the definition to
an URL. This can be done in a page as you suggest, or with a struts
action forwarding to the tiles definition.
Cedric
Heligon Sandra wrote:
> I want to use a common look for each page so I defined a file
>classicLayout.jsp.
> Then for each page I define a new entry site.<name page>.page in
>Tiles.xml
> where I point on a specific body for example login_body.jsp for the
>login page.
> But I don't understand well I must have a first file
>
> login.jsp:
> <tiles:insert definition="site.login.page" flush="true" />
>
> login_body.jsp:
> <html:form action="/LoginAction" focus="username">
> ...
> </html:form>
>
> It is not the best solution,isn't it ? I can not create two files
>for the same page,
> one to point on the best tiles definition and an other to define the
>body.
> How does it works ?
>
> In each body file I have to use the struts <html:form>, in order to
>automatically
> manage cookies, isn't it ?
>
> Thanks for your help
>
>--
>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>