• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'},
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
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!