Hello everyone,

I am using Struts 1.0.2 plus Tiles, and I wonder if I can use Servlet API
2.3's response wrapper to get the output of another action within an action.
For example, I have written an action that can produce dynamic JPEG images,
and I want to write a new action that will get the JPEG image as an byte [],
save it somewhere or email it maybe, and then forward to some page.  At a
high level, the following is what I want to do:

JpegAction: produces JPEG in response's output stream.

JpegIncludeAction:

req.getRequestDispatcher("/JpegAction.do").include(request,
responseWrapper);
save responseWrapper's output stream in a file or email it;
return mapping.findForward("some_struts_page");

Is this doable?  Can I use mapping.findForward() after I have used
getRequestDispatcher().include()?

Thanks!  /Michael.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to