I think I understand what your trying to do... one suggestion that comes
to mind is to use a filter.  Catch the output from the JSP, call the
appropriate service from there (I presume that's when the message actually
gets sent) and then construct the XML response that actually goes back to
the client.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Wed, July 13, 2005 10:43 am, Jens Augustsson said:
> 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]
>
>


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

Reply via email to