To clarify, the two argument version of PortletSession.getAttribute(String,
int)

On Wed, Dec 1, 2010 at 10:44 AM, Tim Garrett <tgarr...@saepio.com> wrote:

> Have you tried the two argument version that takes a scope?  Portlet
> sessions should not be able to see servlet session attributes unless you are
> using APPLICATION_SCOPE.
>
> Tim Garrett
>
>
> On Wed, Dec 1, 2010 at 10:38 AM, SriniPitta <srinivas.pi...@gmail.com>wrote:
>
>>
>> Hi,
>>
>> The values stored in httpsession are not being fetched from
>> portletsession.
>> I have stored a value in httpsession inside my valve and was not able to
>> get
>> the same from portletsession.
>>
>> However,the sessionid's of httpsession and portletsession remained the
>> same.
>> I printed the sessionid's in my portlet and both are same session objects.
>> I did not understand why was I not able to get the value stored in the
>> session inspite of both being the same session objects.
>>
>> ==================
>> doView(RenderRequest request...){
>> PortletSession session = request.getPortletSession();
>>
>> session.getAttribute("key"); // returns me null
>>
>>
>> org.apache.jetspeed.request.RequestContext requestContext =
>>                                (RequestContext)
>> request.getAttribute(RequestContext.REQUEST_PORTALENV);
>>                        HttpSession httpSession  =
>> requestContext.getRequest().getSession();
>> HttpSession httpSession  = requestContext.getRequest().getSession();
>>
>> httpSession.getAttribute("key"); returns me the value
>>
>> ==================================
>>
>> Thanks,
>> Srini.
>> --
>> View this message in context:
>> http://old.nabble.com/httpsession-vs-portletsession-tp30350795p30350795.html
>> Sent from the Jetspeed - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
>> For additional commands, e-mail: jetspeed-user-h...@portals.apache.org
>>
>>
>
>
> --
>
>
> * tim garrett* software engineer
> 4601 madison avenue, 4th floor
> kansas city, mo 64112
> p 816.777.2158
> tgarr...@saepio.com *www.saepio.com*
>
>


-- 


* tim garrett* software engineer
4601 madison avenue, 4th floor
kansas city, mo 64112
p 816.777.2158
tgarr...@saepio.com *www.saepio.com*

Reply via email to