I figured it out! Just in case anyone else needs to know...
1) use Packages.dir.dir.class e.g.
var MyClass = new Packages.com.domain.name.MyJavaClass();
2) The directories messed me up a bit. For Java actions, the class files default to WEB-INF/classes. In order to get the javascript to run, I had to put the package directory under my sitemap directory.
e.g. Sitemap in:
c:\cocoon-2.1m2\build\webapp\myweb
Class files in: c:\cocoon-2.1m2\build\webapp\mywebb\com\domain\name
Took a bit to figure it out, but it's working now. :)
I was so surprised by this that I forwarded it over to dev and got an unequivocal response that this must be an incorrect conclusion. Can you start from scratch and clean out your WEB-INF\lib and WEB-INF\classes of all possible references to your class and try again? Then, assuming that fails (and I'm assured it will) remove it from the webapp dir and put it back in \lib or classes\com\domain\name\MyJavaClass.class and try again.
If you can confirm that WEB-INF does not work but webapp\...\ does we have a bug.
Geoff Howard
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
