Jay Alexander

Greenhorn
+ Follow
since Dec 11, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jay Alexander

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").