You can set the layout by overriding the getLayout method in the screen
class for the template:
public String getLayout(RunData data) {
data.setLayoutTemplate("/CommonLayout.jsp");
return super.getLayout(data);
}
When I have several screens that share a layout, I usually create a
screen class that does what I wrote before. Then, I use this class as
the base for the screen classes for which I want the common layout.
Gabriel
> Hi!
>
> I need help with JSP templates.
>
> I'm using JSP with turbine (Velocity is not an option). I have 4 templates for
> 10 screens and I want to know how I can set the template for a page.
>
> I just know that the layout for the screen A.jsp is also named A.jsp. When I
> tried rundata.setLayoutTemplate("B.jsp"), it is not reflected to the page but I
> know that the layout template is set to B.jsp bec of rundata.getLayoutTemplate().
>
> Thank you!
>
> Fina
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Gabriel Moreno <[EMAIL PROTECTED]>
ITC Soluciones
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]