action forward to servlet

2007-04-30 Thread Chris Pat
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

Re: action forward to servlet

2007-04-30 Thread Felipe Rodrigues
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. -- View this message in context: http://www.nabble.com/action-forward-to-servlet-tf3668811.html#a10253751 Sent from

Re: action forward to servlet

2007-04-30 Thread Laurie Harper
The first question should be, do you really need the servlet? You could generate the full response from the action. If you still need to keep the servlet around for other uses, perhaps you can refactor the bulk of its work into a service class that both the servlet and the action can use to

Re: action forward to servlet

2007-04-30 Thread Chris Pat
. I can do it with servlets, but cant seem to do it with an action and a servlet. Can someone help me understand? tia. -- View this message in context: http://www.nabble.com/action-forward-to-servlet-tf3668811.html#a10253751 Sent from the Struts - User mailing list archive at Nabble.com

Re: action forward to servlet

2007-04-30 Thread Chris Pat
Hi Laurie I had used Request.dispatcher before but only in servlet code; didnt know/realize I could do it in an Action. I see the key is to make that one of the states that will always be called and just trick Struts with the return of the null. I assume the technology is orthogonal enough