Re: Accessing Portlet Session parame ters in Freemarker

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Wednesday, April 9, 2008, 10:03:19 AM, sunil wrote:

> Hi,
> Thanks for the reply.
>
> Now Iam able to access the Portlet Session attributes in the Freemarker
> template files. 
>
> after lot of trial and error I found out that we need to keep the Portlet
> Session attributes in the Application scope to access them in the template
> files. You cant access the session attributes if they are present in the
> Portlet Scope.

I don't get how could you put session attributes into the application
scope... after all, the point of session attributes is that they can
be different for each visitors, while application scope attributes are
common among each visitors.

> Thanks again for your cooperation.
>
> Sunil.

-- 
Best regards,
 Daniel Dekany


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.