The results can be returned raw, or displayed along with any return value. You may also capture output sent to System.out and System.err.
Please note the BeanShell version information displayed with the output. Some app servers (e.g. Weblogic) may come bundled with their own copy of BeanShell and may use their version even if you packaged a newer release inside the WAR file. To upgrade you may have to place the new BeanShell release earlier in the app server's classpath. See www.beanshell.org for more information.