jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marty La Jeunesse <...@paceast.com>
Subject Capturing OutputStream from a StrutsAction
Date Tue, 15 May 2007 06:48:07 GMT
In my StrutsAction classes I write a JSON string to the Response 
outputStream:
                 OutputStream os = response.getOutputStream();
                 os.write(result.getBytes());
                 os.flush();
                 os.close();
                 return null;
I'm trying to capture the response in my StrutsTest class, but I can't 
find it. I mean I can find the Response object, but I don't know where 
to look for the bytes that I wrote to the Response outputStream.

thanks

Mime
View raw message