You have to use tags. Here's an example:
--------------
<%@ taglib uri='/WEB-INF/tlds/template.tld' prefix='turbine' %>
<html>
<head>
</head>
<body>
<turbine:screen section="body" />
</body>
</html>
-------------
The tag <turbine:screen section="body" /> gets replaced with a screen.
On Mon, 2003-07-21 at 08:34, Alex wrote:
> hello everyone,
>
> please, help me to understand how to use jsp with turbine.
> I set the properties as follows:
>
> template.homepage=index.jsp
> template.login=Login.jsp
> page.default=JspPage
> services.JspService.default.layout.template = Default.jsp
>
> When does turbine load template.homepage, template.login and
> services.JspService.default.layout.template?
>
> I have next Default.jst file:
>
> <jsp:useBean id="screen_placeholder"
> class="org.apache.turbine.services.jsp.util.JspScreenPlaceholder" scope="request"/>
> <jsp:useBean id="navigation"
> class="org.apache.turbine.services.jsp.util.JspNavigation" scope="request"/>
>
> <table width="100%">
> <tr>
> <td colspan="2">
> <% navigation.setTemplate("DefaultTop.jsp"); %>
> </td>
> </tr>
> <td align="left" valign="top">
> <%= screen_placeholder %>
> </td>
> </tr>
> </table>
>
> Why is screen_placeholder replaced with this string "[EMAIL PROTECTED]"
> but not with some of screen templates, for ex., login.jsp if the user's not logged
> in?
>
> thanks for help!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Gabriel Moreno
ITC Soluciones
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]