Please, Henning, tell me how to configure JspService and
TemplateService to anable JSP template.
"Henning P. Schmiedehausen" <[EMAIL PROTECTED]>:
> Alex <[EMAIL PROTECTED]> writes:
>
> >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
>
> You must configure the JspService to be able to process .jsp
Pages with the
> Template Service.
>
> Then you must configure the TemplateService to use JspPage and
JspScreen.
>
> template.homepage is requested when you use first access your
> application. template.login is used when you use security and
the
> SessionValidator decides that you're not worthy to look at the
> homepage and must log in. ;-)
>
> page.default is not a Turbine property.
>
> If you want to use the Jsp View, you _must_ add
>
> services.JspService.early.init = true
>
> to your TR.props. Else the JspService will not register with the
> TemplateService.
>
> Regards
> Henning
>
>
>
> >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]
9"
> >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: turbine-user-
[EMAIL PROTECTED]
> >For additional commands, e-mail: turbine-user-
[EMAIL PROTECTED]
>
> --
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA
GmbH
> [EMAIL PROTECTED] +49 9131 50 654 0
http://www.intermeta.de/
>
> Java, perl, Solaris, Linux, xSP Consulting, Web Services
> freelance consultant -- Jakarta Turbine Development -- hero for
hire
>
> --- Quote of the week: "It is pointless to tell people anything
when
> you know that they won't process the message." --- Jonathan
Revusky
>
> -----------------------------------------------------------------
----
> To unsubscribe, e-mail: turbine-user-
[EMAIL PROTECTED]
> For additional commands, e-mail: turbine-user-
[EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]