Saturday, March 14, 2009

What is the difference between page and request scopes (JSP)

Question :What is the difference between page and request scopes? (JSP)
Answer :If you specify scope as Page then its life span is until page is displayed or
control is forwarded to a new page. Accessibility is current page only.
But if u specify as Request, its life span is until the request has been
completely processed and the response has been sent back to the user.
Accessibility is current page and any included or for-warded pages

No comments: