> 1. From inside a jetspeed portlet Java code, how could you find out the
> install directory of Jetspeed?
TurbineServlet.getRealPath("/") should do the trick.
> 2. How is session management handled in Jetspeed/Turbine? i.e. if I want
> to execute a certain code of my portlet (e.g. clean up code while logging
> out) when a user logs in and out, where should I put that code?
You will have to create a custom class that either implements JetspeedUser or extends
BaseJetspeedUser.
Next, override the valueBound and valueUnbound methods associated with the
HttpSessionBindingListener interface. If you extend BaseJetspeedUser, make sure to
call super.valueBound() and super.valueUnbound() respectively within the overridden
methods.
Login = valueBound
Logout = valueUnbound
hth,
Scott
> -----Original Message-----
> From: Sandeep Nijsure [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 15, 2002 1:51 PM
> To: Jetspeed Users List
> Subject: Session management
>
> Hi all,
>
> I had a couple of questions:
>
> 1. From inside a jetspeed portlet Java code, how could you find out the
> install directory of Jetspeed?
>
> 2. How is session management handled in Jetspeed/Turbine? i.e. if I want
> to execute a certain code of my portlet (e.g. clean up code while logging
> out) when a user logs in and out, where should I put that code?
>
> Thanks a lot,
> Sandeep
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail: <mailto:jetspeed-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:jetspeed-user-
> [EMAIL PROTECTED]>