This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Attributes in request scope are available to any jsp page or servlet that are part of the specific request chain. For instance, if I made a GET request to servlet1, which forwarded to servlet2, which forwarded to jsp3, etc... attributes put in request scope in servlet1 would be available in jsp3 as well.
Attributes in page scope are accessible only within the specific JSP page and is destroyed when the page has finished generating its output for the request. Page scope is usually used with custom tags, and it is a way to pass data from the jsp page to the custom tag.
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
Joined: Jul 22, 2004
I had that same understanding as what you described, that�s why I�m confused.
I have the following code in a jsp that submits to a struts action.
Since scope is set to request, I would expect that I would have a handle to �test1� by using request.getAttribute(�test1�); in my action that I�m posting to. I don�t and that�s what I don�t understand.