Hi.
If you use the VeocityViewServlet from velocity-tools, all the
following:
$session_attr
$session.getAttribute("session_attr")
$request.getSession().getAttribute("session_attr")
$request.session.getAttribute("session_attr")
should work.
You can try to check what is inside the session with the following
fragment of code:
<ul>
#foreach($name in $session.getAttributeNames())
<li> $name = $session.getAttribute($name) </li>
#end
</ul>
Claude
On lun, 2008-11-10 at 04:24 -0800, Roland J wrote:
> Hi,
>
> I have a problem getting custom values from the httpSession (NOT the
> portletSession) in the header.vm
> I tried different options like:
>
> 1. #set( $s_NO = $request.session.getAttribute("session_attr") )
> 2. #set( $s_NO = $request.getSession().getAttribute("session_attr") )
> 3. #set( $s_NO = $session.getAttribute("session_attr") )
> 4. #set( $s_NO = $session.session_attr )
>
> with the same result. $s_NO is always empty.
> I also tried to import a custom jsp file with the import directive to read
> out my Session attributes
>
> $import.read("http://localhost:8080/jetspeed/decorations/layout/ls1/file.jsp")
>
>
> However <%= session.getAttribute("session_attr") %> returns "null"
>
>
> Could someone respond with a solution?
>
> Thanks
> Roland
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]