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 "Shabir, Nadeem" <Na...@ds-s.com> on 2006/03/22 11:13:07 UTC

Using Jetspeed2 with Velocity

Hello there,

Im currently trying to create a velocity template that needs to access
the current users details and display them on a page.

In Jetspeed 1 we had to access to the JetspeedRunData, however this no
longer exists in Jetspeed 2.

Im struggling to find any documentation that describes how I might
access information about the currently logged in user, from within a
velocity template.

For example , lets say I simply want to print out the users name on the
screen using a velocity template however im not trying to display this
information inside a portlet, but rather on a template page that I wish
to add portlets to later.  

Can anyone suggest how to do this.

Many thanks

Nadeem


Re: Using Jetspeed2 with Velocity

Posted by Jacek Wiślicki <ja...@gmail.com>.
Wiadomosc od Shabir, Nadeem z 2006-03-22 11:13 brzmiala:

> Hello there,
> 
> Im currently trying to create a velocity template that needs to access
> the current users details and display them on a page.
> 
> In Jetspeed 1 we had to access to the JetspeedRunData, however this no
> longer exists in Jetspeed 2.
> 
> Im struggling to find any documentation that describes how I might
> access information about the currently logged in user, from within a
> velocity template.
> 
> For example , lets say I simply want to print out the users name on the
> screen using a velocity template however im not trying to display this
> information inside a portlet, but rather on a template page that I wish
> to add portlets to later.  
> 
> Can anyone suggest how to do this.
Jetspeed uses JetspeedVelocityViewServlet (an implementation of 
BridgrsVelocityViewServlet) in package org.apache.jetspeed.velocity. If 
you need some extra functionalities, add objects/methods to one of 
objects already available in its context (e.g. JetspeedPowerToolImpl) or 
create your own class and add it to the context (a better solution).

-- 
pozdrawiam,
     Jacek Wislicki

jacek.wislicki@gmail.com
tel.: +48 502 408 444
gg: 2540358
skype: jacek_wislicki

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