Hi all,

I'm having some trouble using the Jelly define tags. Basically what I'm trying to do is define a jellyBean tag to use the Jasper compiler on a Tomcat version of my choice. So far I have tried something along the lines of :

 <define:taglib uri="jasper">
   <ant:path id="jspc.classpath">
     <echo message="Java home=${java.home}" />
     <ant:pathelement location="${java.home}/../lib/tools.jar"/>
     <ant:fileset dir="${catalina.home.dir}/bin">
       <ant:include name="*.jar"/>
     </ant:fileset>
     <ant:fileset dir="${catalina.home.dir}/server/lib">
       <ant:include name="*.jar"/>
     </ant:fileset>
     <ant:fileset dir="${catalina.home.dir}/common/lib">
       <ant:include name="*.jar"/>
     </ant:fileset>
     <ant:path refid="maven.dependency.classpath"/>
     <ant:pathelement path="${maven.build.dest}"/>
   </ant:path>
   <define:classLoader var="jasperClassLoader" url="${jspc.classpath}" />
   <define:jellybean
     classLoader="${jasperClassLoader}"
     name="JspC"
     className="org.apache.jasper.JspC"
     method="execute"
     />
 </define:taglib>

but this doesn't work because I can't reference the Ant refid in the classloader tag. Also it seems the classLoader tag only accepts a SINGLE URL as a parameter, not a collection of them (I looked at the source code for this tag and this was my understanding).

I know that I can use the dependency classpath to define all I need, but that means hardcoding the Tomcat version I can use this tag with, which is what I'm trying to undo. I've searched all over Google, Maven and Jelly websites and I must say I'm at a loss here. Any help would be greatly appreciated !

Regards,
 Serge Huber.

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



Reply via email to