Getting value from the request, you should be putting a value to a request. This code
request.getAttribute("testvalue");
is getting a value, but that code
request.setAttribute("testvalue", value);
is putting it.
This is because you want to avoid using the HTTP session.
solved Send value from 1 jsp to another jsp