• Post Reply Bookmark Topic Watch Topic
  • New Topic

How request and pageContext are related ?

 
Srinivasan thoyyeti
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

A very good morning for people in India.

Scenario:
In JSP's pageContext is created like this >





How the changes done to request reflected back to
pageCopntext's request and vice-versa?


I found this doubt when i was going through useBean,getProperty,setProperty all of them using the pageContext to find the Object.

but request(or session or context) is existing prior to pageContext.
How the sync has been tackled between them?


Please get back to me.
 
Manzar Zaidi
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PageContext implementations are provided by the servers. Looking at the PageContextImpl from apache, I see it maintains the request as a member variable, so any changed to the request made via PageContext happens to the actual object suppiled at initialisation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!