I've just resorted to this work around for the non-closing Swing script... xmlns:b="jelly:beanshell"
<b:script>
System.exit(0);
</b:script>
brute force, but successful :)
Regards
Andy PaulI don't quite follow this. I haven't done anything with jelly for a long time now, but IIRC then you shouldn't modify the jelly.properties file. This is only used for the default set of tag libraries. You can reference a custom one using the FQCN of the custom tag library, as in:
<j:jelly xmlns:j="jelly:core" xmlns:my="jelly:com.foo.bar.MyTagLibrary"> <my:foo/> </j:jelly>
This is also documented in the FAQ.
-- knut
"Sean W. Ferguson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Correct, it solved nothing about classpath. I just got rid of the jar from the classpath in jelly.bat and it worked fine as long as the jar was in %JELLY_HOME%\lib.
I couldn't find anywhere an explanation on how to make your own custom tag libraries. I just figured it out through trial and error. :)
Paul Libbrecht wrote:
Oh, but that bit (which attaches a namespace to a tag-library) can be avoided and it is explained how, or isn't it ? (that is, in the jelly source one can do that...).
And it solves nothing about classpath, or is there something I missed ?
Paul
Sean W. Ferguson wrote:
Hah, no. It was just jelly.properties in org.apache.commons.jelly folder. I only figured it out after debuggin w/ eclipse where it got the libraries from originally. :)
Paul Libbrecht wrote:
Sean,
You might have discovered something not documented. At least I did not know about jelly to use a properties file to add tag-libs.... was it the forehead.conf ?
Thanks.
Paul
Sean W. Ferguson wrote:
I figured it out. I needed to add my taglib to jelly.properties.
Sean W. Ferguson wrote:
Hi,
I am trying to create my own customer tag library, but am having some issues. Other than creating a class that extends TagLibrary and putting it in the classpath, what else do I have to do? Right now trying to use the my custom taglibrary throws a class not found exception.
Thanks
Sean
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
