If you need to capture output from a bean, don't use System.out.print - that
goes to the system console or a log file.  The "out" variable on a JSP page
is a java.io.Writer object (or at least it is deep down).  You should set
this as a member variable of your bean class and write output through that.
Or, if you prefer, you could have the methods from which you want output
take a Writer object as an additional parameter.  The output of your bean
will then be part of the output of your JSP page.

Kind regards,

Chris Williams.



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

Reply via email to