You can just write to the outputstream, and return null from execute, and you won't need a NoOp result. I also wrote my own NoOp result when i started using S2 ;). Maybe this should be on the FAQs.
musachy On 3/30/07, Sarr, Nathan <[EMAIL PROTECTED]> wrote:
Hello, We are using some actions to write directly to the stream for some ajax based functionality. To do this I wrote a NoOp result type that does nothing. [code] public class NoOp extends StrutsResultSupport { public NoOp() { super(); } protected void doExecute(String finalLocation, ActionInvocation invocation) throws Exception { //no op } } [/code] This allows the action to write the content using: response.getOutputStream().write(contents) I am looking for best practices. Is this an acceptable way to do this or is there a better way to allow an action to return content that I would like placed as only part of the page? Thanks for the help, Nathan Sarr
-- "Hey you! Would you help me to carry the stone?" Pink Floyd