Win a copy of Microservices in Action this week in the Web Services forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

doubt in page scope  RSS feed

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 value.......so will it be possible to access some attribute stored in request object using that standard action>
 
Ranch Hand
Posts: 437
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Ravi. <jsp:useBean..> primarily used for bean classes. It is not possible.
 
Ravi Bansal
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!