getSessionScope().put("flag", "value");

View: New views
1 Messages — Rating Filter:   Alert me  

getSessionScope().put("flag", "value");

by Darshan Shroff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

Kindly treat this on high priority.

I am using JSR 168 portlets. WPS6.1.

I am using the below statement in one of my jsp pages.
getSessionScope().put("flag", "value");

The above statement throws null pointer exception incosistently.
Its not that it always throws an exception. Sometimes it does, sometimes it doesnt.

Could anybody throw some light on the cases when getSessionScope returns null
or
What i might be doing incorrectly ?

Thanks & Regards,
Darshan Shroff