• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

jsp scope problem

 
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).

 
Ranch Hand
Posts: 8946
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

reply
    Bookmark Topic Watch Topic
  • New Topic