This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes Session.getAttribute() returning null in normal ajax jsp (Oracle Applictaion server portal 10g) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Session.getAttribute() returning null in normal ajax jsp (Oracle Applictaion server portal 10g) " Watch "Session.getAttribute() returning null in normal ajax jsp (Oracle Applictaion server portal 10g) " New topic
Author

Session.getAttribute() returning null in normal ajax jsp (Oracle Applictaion server portal 10g)

Komari raj
Ranch Hand

Joined: Dec 12, 2008
Posts: 43
Hi all

i am setting session in portlet jsp with following code using oracle application server portal 10g.

session.setAttribute("map",map);(here session is implicit object )

after calling jsp using ajax implementation with below code,

var url = "<%=renderRequest.getContextPath()%>/AjaxProcessRequest.jsp?q=" + random;
var pars = '&namespace=<portlet:namespace/>' +'&imagesPath=' + '<%=imagesPath%>';

var myAjax = new Ajax.Updater(
{success: 'emailbody'},
url,
{
method: 'get',
parameters: pars,
onFailure: reportError,
evalScripts: true
});

i am accessing map object from session in my AjaxProcessRequest.jsp as shown in below code.

Map map=(Map)session.getAttribute("map"); (here session is implicit object )

here map object is getting null from session.

if any body knows please help on this.

Thanks & Regards
Raju.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session.getAttribute() returning null in normal ajax jsp (Oracle Applictaion server portal 10g)
 
Similar Threads
unable to access implicit object session and EL sessionScope
Question on using Ajax.Updater
newbie problem
How to pass the logged user ID into SDO to filter results
Session variables are not getting storred