Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Page Scope

 
Bernhard Slominski
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm preparing for the exam and I didn't get the pageScope for JSPs.
What's the difference between the page and the request scope.
I went through HF Servlets and JSP but couldn't find a proper answer.

Thanks

Bernhard
 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
objects in the page scope are visible only within 1 compilation unit (JSP)
objects in the request scope may be visible among several JSPs if one JSP forwards request to another JSP.

HTH,
MZ
 
Bernhard Slominski
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the answer,
so page scope is the narrowest scope, is that right?

Cheers
Bernhard
 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right !

regards,
MZ
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic