David,
I hadn't been able to use setLayout(). What I do is to have a layout
template with the same name of the screen for which I want a different
layout. Layout templates are located in a directory named layouts at the
same level that the screens directory. Usually, this is
templates/app/layouts

Gabriel

On Mon, 2003-08-18 at 11:24, David Philippi wrote:
> I've got some problems regardings JSP's in turbine (using Velocity is not an
> option). 
> I can't find where the layout is defined. If I'm not completly on the wrong
> track, the option
> services.JspService.default.layout = DefaultLayout
> causes turbine to use DefaultLayout for my screens. I can guess that this is
> what yields the "Turbine - A Servlet Framework for building Secure Dynamic
> Websites." before and after my page but: where is that defined? 
> I'd like to know where I can change the content of the DefaultLayout for my
> app and how to change the layout for a single screen. I guess setLayout()
> may be what's required but I know neither what I should use as layout
> parameter (I suppose a file residing in X, using Y as the placeholder for
> the current screen name) nor where to call it. doBuildTemplate() seems to be
> too late in the process for a call to setLayout() but on the other hand it's
> the only place where I've got a RunData object (that I know of).
> Any help would be very appreciated, I'm in the fortunate situation of never
> having done anything with JSP, ServerPages or similar except CGI with Perl
> and I'm working on a project right now where I must use Turbine and I must
> use JSP instead of Velocity. Unfortunately, most if not all documentation
> that I find is based on Velocity and in most cases I don't know enough about
> Turbine yet to apply the information in the context of JSP. :-(
> 
> Bye David
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to