You can return binary data from the Actions. In the action's perform()/execute(), instead of returning a forward mapping, what you can do is: * Set the correct content type and header by calling response.setContentType() and setHeader() * Get the output stream from response.getOutputStream() and stream whatever binary data you need to return * at the end of the perform()/execute() method, return null. At 01:09 pm 13-08-2002, you wrote: >Hi all, > > I'm going to develop a java application with java client on client side >which talks to a controller servlet. The data transmitted between client and >server may be serialized object. > Does Struts support java client by outputting a serialized object as a >HTTP response instead of forwarding to a JSP? If yes, would anyone give me >some hints? Thanks. > >Best Regards, >Leslie > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- John Yu Scioworks Technologies e: [EMAIL PROTECTED] w: +(65) 873 5989 w: http://www.scioworks.com m: +(65) 9782 9610 Scioworks Camino - "Don't develop Struts Apps without it!"