----- Original Message -----
From: "Ming Fai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 3:21 AM
Subject: How to change from vm to jsp template


> Hi, I'm new to jetspeed and want to ask simple questions. I use the latest
> jetspeed 1.3a2-dev.
>
> 1. What're the steps to switch from vm to jsp?

in the TRP change:

services.TemplateService.default.extension=vm

to:

services.TemplateService.default.extension=jsp

> So far as I know, i need to modify TurbineResources.properties, the
> 'Framework Settings' part. By default, the following properties are there:
> template.homepage=Home
> screen.homepage=Home
> template.login=Login
> template.error=Error
> screen.error=Error
> screen.invalidstate=error.InvalidState
> default.doctype=Html40Transitional
> action.login=JLoginUser
> action.logout=LogoutUser
> action.sessionvalidator=JetspeedSessionValidator
> action.accesscontroller=AccessController
>
> My question is, which of the above need to be changed? And all I need to
do
> is to change the value to xxx.jsp, right? (e.g. Home -> Home.jsp, as long
as
> Home.jsp exists in the template/jsp directory)
>
> 2. What is the difference between default template and default screen? If
I
> specify both in the property file, which one will be used?

Could you be more specific, what line in the TRP are you talking about?
In general, templates are your jsp or vm templates.
A template can implement a screen, or a screen can be implemented in Java.
To learn more about Turbine modules, see:
http://jakarta.apache.org/turbine/turbine-2/fsd.html
>
> 3. I personally think it's better to use jsp rather than vm because jsp
use
> Java which is a 'industrial standard' programming language while vm is not
> so common. I read from achieve that some discussion of 'jsp vs vm' is not
> yet available in achieve, could anybody summarize the difference between
to
> two?

There are a lot of good arguments contrary to the point you are making.
That is, you shouldn't put Java code in the presentation (template)

http://jakarta.apache.org/velocity/ymtd/ymtd.html
http://www.servlets.com/soapbox/problems-jsp.html


>
> Thx a lot in advance.
>
> Regards,
> mingfai
>
>
> ---------------------------------------------------------------------
> 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