Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp scope problem  RSS feed

 
vikasids sharma
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i m using framed jsp page. i keep scope of jsp at upper frame as "request" while using <jsp:useBean>. I sends control from controller servlet as request.setAttribute("requestObject","requestObject").Now i am not able to recieve the same request object at upperframe , it gives me null.
It works well when i keep the scope of upper frame as session and sends control as request.getSession.setAttribute(("requestObject","requestObject");
My requirement is to use request instead of session.
How to get my request object in frame(upper and lower)by keeping scope as "request"?
[ October 17, 2003: Message edited by: Bear Bibeault ]
 
hemant khandade
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the first arguments is name while the second is the value so try ("name", object).
 
vikasids sharma
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thatz fine ...its just writing mistake.Coding is the same way as you are telling...
Originally posted by hemant khandade:
the first arguments is name while the second is the value so try ("name", object).
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to get my request object in frame(upper and lower)by keeping scope as "request"?

If I have understood your requirmenets correctly, you cannot use request go for session.
 
Brusk Baran
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Each frame has its own request and response. but they probably share the same session:unless the browser is extremely wild!!!
 
vikasids sharma
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks pradeep
now i need to remove that object from session after using it.
any way no other options .i have to do it.
thanks
Originally posted by Pradeep Bhat:

If I have understood your requirmenets correctly, you cannot use request go for session.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!