• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scope of implicit response object

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the scope of the implicit response object.
The syntax reference card from Sun says it as Page scope but I think it should be request scope.
 
Anthony Villanueva
Ranch Hand
Posts: 1055
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JSP 1.2 specs (JSP.2.8.3 Implicit Objects) say it's page scope.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is it page scope ? Can't I use the same response object across pages. I strongly feel it is request scope.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Objects with request scope can be accesed by another servlet/jsp that is forwarded the request.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic