You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Christopher Wood <cw...@epo.org> on 2005/01/18 13:54:42 UTC

JSP decorators in Jetspeed 2?

Do decorators based on JSP templates work in Jetspeed 2? I've tried 
changing the "template.type" property in decorator.properties to "jsp", or 
variations of that, without success. Regardless of whatever I specify, a 
velocity template (.vm) is searched for.

Can someone tell me how to get this working?

Thanks,
Chris Wood

Re: JSP decorators in Jetspeed 2?

Posted by David Sean Taylor <da...@bluesunrise.com>.
Marcel Dullaart wrote:
> Hi David,
> 
> I am a collegue of Chris, and we have no experience with velocity.
> 
> Can you give a simple overview/list of the classes/packages that
> implement the velocity templating engine, so we might give it a try to
> implement the jsp engine ourselves?
>
Lets start with overriding a layout.
Layouts are implemented as portlets.
See the layouts-portlets directory, and the base classes for our current 
layouts are:

org.apache.jetspeed.portlets.layout.LayoutPortlet
and
org.apache.jetspeed.portlets.layout.LayoutPortlet.MultiColumnPortlet

Note that LayoutPortlet extends GenericServletPortlet

I think you can start with the same approach.
You will need to create an equivalent of the JetspeedPowerTool with 
perhaps a tag library or request scoped bean.

Im in the process of documenting the JetspeedPowerTool this week.
It would be best if the JSP layouts would make use of the same JPT as 
the velocity layouts.

see the org.apache.jetspeed.velocity package, and specifically:

JetspeedPowerTool
JetspeedVelocityViewServlet

-- 
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: JSP decorators in Jetspeed 2?

Posted by Marcel Dullaart <ma...@gmail.com>.
Hi David,

I am a collegue of Chris, and we have no experience with velocity.

Can you give a simple overview/list of the classes/packages that
implement the velocity templating engine, so we might give it a try to
implement the jsp engine ourselves?

Thanx,
Marcel

On Tue, 18 Jan 2005 10:40:24 -0800, David Sean Taylor
<da...@bluesunrise.com> wrote:
> Christopher Wood wrote:
> > Do decorators based on JSP templates work in Jetspeed 2? I've tried
> > changing the "template.type" property in decorator.properties to "jsp", or
> > variations of that, without success. Regardless of whatever I specify, a
> > velocity template (.vm) is searched for.
> >
> > Can someone tell me how to get this working?
> >
> > Thanks,
> > Chris Wood
> 
> We haven't written support for JSP decorations and layouts yet.
> Since all velocity templates are dispatched, the procedure will be very
> similar for JSP. We only supported one templating engine (velocity) to
> start with and plan to support JSP in future releases.
> 
> --
> David Sean Taylor
> Bluesunrise Software
> david@bluesunrise.com
> [office] +01 707 773-4646
> [mobile] +01 707 529 9194
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: JSP decorators in Jetspeed 2?

Posted by David Sean Taylor <da...@bluesunrise.com>.
Christopher Wood wrote:
> Do decorators based on JSP templates work in Jetspeed 2? I've tried 
> changing the "template.type" property in decorator.properties to "jsp", or 
> variations of that, without success. Regardless of whatever I specify, a 
> velocity template (.vm) is searched for.
> 
> Can someone tell me how to get this working?
> 
> Thanks,
> Chris Wood

We haven't written support for JSP decorations and layouts yet.
Since all velocity templates are dispatched, the procedure will be very 
similar for JSP. We only supported one templating engine (velocity) to 
start with and plan to support JSP in future releases.

-- 
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org