This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Hello Is/how it possible to forward from a action to a servlet at another url and preserve the parameters and session objects? I am doing all the processing in the Action and just simply need to send a data stream back. I can do it with servlets, but cant seem to do it with an action and a servlet. Can someone help me understand? tia.
From the action, you could use the getRequestDispatcher (it's in the ServletRequestinterface). Then, you forward to the desired servlet. From inside a serlvet, you have access to the session and can retrieve any objects you want.
If you still have questions, please post your code. And make sure that what you're doing really makes sense. Usually, you shoudn't forward a request to a servlet from your action. [ April 30, 2007: Message edited by: Leandro Melo ]