Hi, I'm using Struts/JSP to to generate HTML, XHTML and WML interfaces of my application. My SMS interface is fairly advanced and I would like to use Struts/JSP to generate these (plain text ) responses too.
My problem is that after generating the plain text response, I cannot simply return it to the requestor. Instead I need to send this message by calling another service and simply response with an acknowledge (XML) to the requestor. How can I do this and still use JSP for the design of the text responses? My first try was to extend the RequestProcessor and find some suitable "post" process methods to override, which might redirect the JSP output somewhere else. Found no such methods. My second try was to extend the ActionServlet and catch all that's written to the outputServletStream, but I don't know how to not flush the response and get a hold of what's written by the JSP. Cannot be that hard, can it? Or can I instead call for JSP processing in my Struts Action, get a hold of the output, send it using my own service, and simply return an "acknowledgeOk" forward to Struts? Hope anyone understands what I want to to! My main aim is to keep the design of the text responses out of my Java code, hopefully instead in a JSP page. best regards, Jens --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]