This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doubt in page scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doubt in page scope" Watch "doubt in page scope" New topic

doubt in page scope

Ravi Bansal
Ranch Hand

Joined: Aug 18, 2008
Posts: 84
if a servlet stores some attribute in request scope and forwards the request to JSP, is it possible that JSP can access that attribute by using standard action(<jsp:useBean) in the page scope?

actually i am trying to understand when we dont specify the scope in standard action , then it takes PAGE scope as default will it be possible to access some attribute stored in request object using that standard action>

SCJP 5.0 94%
Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
Hi, Ravi. <jsp:useBean..> primarily used for bean classes. It is not possible.
Ravi Bansal
Ranch Hand

Joined: Aug 18, 2008
Posts: 84
Chinmaya, thanks for the reply..............

attribute stored in the request scope is of type bean class only.........the only different thing is the scope in the standard action and that is the PAGE scope instead of REQUEST........can we access that attribute in page scope ?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: doubt in page scope
Similar Threads
Scope question
please solve head first scwcd problem
page scope
using jsp:setProperty without jsp:useBean
Session Issue