This is the error message i get with the code above. If I use the redirect instead, i am getting a null for the request.getAttribute("selected") in the DownloadServlet. How do I do this?
might be you are re-forwarding a response which is already sent once(committed). you can check for null by setting an attribute with ServletContext object which will work.
Since you are using JSF framework, why are you going out of this framework? framework provides you the facility to seperate your business logic and navigation part. I dont think its necessary to forward the request to Servlet from a manged bean
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad: