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.
I am attempting the example on page 444&445. I am not understanding something. According to the text you should be able to set a scope variable in page, request, etc.... However, I was trying an example of setting a request scope variable in a JSP page, and was attempting to extract it the servlet's doPost() method from the request, but the value continued to be null. I tried the following: <c:set var="variable1" scope="request" value="somevalue /> & <c:set var="variable2" scope="session" value="somevalue />. I was able to get the value from the session in the doPost() with request.getSession().getAttribute("variable2"), but unable to get it from the request with request.getAttribute("variable1").