I have created a small test servlet and webapp example for BeanShell.
You can use it to try BeanShell in your app server.
It accepts some text, evaluates it capturing stdout and stderr, and shows
you the results including any return value. The servlet also tells you the
version of bsh that it is using, which is very useful.
The source is in the 1.2b2 source distribution. You can also grab the
compiled example WAR file. There are two versions - one that comes with
the latest bsh included in the WAR file and one that expects bsh to be in
the app server's classpath:
(with bsh-1.2b2 included)
If you grab the latter you may with to rename it to simply "bshservlet.war".
Deploy it in your app server (likely just drop the war file in the correct
place) and then hit /bshservlet/index.html for instructions.
See my previous mail regarding upgrading bsh in Weblogic 6.1 if you are using