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 tha

Re: action forward to servlet

2007-04-30 Thread Chris Pat
Hi Felipe Thanks, that I got. My conceptual difficulty is I dont see how to define a global forwards for the servlet and call it in my request.mapping.FindForward("forwardToServlet"), or maybe it is brain-fade Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Preserver de session? Session is already

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 gen

Re: action forward to servlet

2007-04-30 Thread Felipe Rodrigues
Preserver de session? Session is already preserved. Did you try that? To get values from session in your servlet you must use Session ses = request.getSession(). Than you have your session object. Parameters from request? You should use request.getParameters(). To get Action fields, well I'm not s