Since redirecting involves having the browser create a brand new request, you can't use request scope to pass variables from one page to another this way.
You can use session scope or querystring variables.
"The right way" depends on your app. That would allow you to pass the variable from one page to another.
Now that your variable is bound to session scope, you'll need to manage its state yourself (ie: remove it if it could be used by another page in a different way).
If you need to pass just few short values, I'd recommend to use redirect request parameters. Using session can be not robust enough in case of concurrent requests in the same session scope.
Originally posted by D Rog: If you need to pass just few short values, I'd recommend to use redirect request parameters. Using session can be not robust enough in case of concurrent requests in the same session scope.