2014-06-06 14:33 GMT+04:00 Jeff Cai <jeff_...@symantec.com>:
>>>
>>> Jstl.jar should be added to the classpath of jasper task which is defined 
>>> in ${tomcat_home}/bin/catalina-tasks.xml.
>>>
>>> How can I add the jstl.jar to the task’s classpath in Ant?
>>>
>>
>>
>> 1. What for?
>>
>> 2. Put jstl.jar into WEB-INF/lib of your webapp.
>>
>> 3. You can always copy-paste the content of catalina-tasks.xml into your own 
>> build file and adjust it as you wish.
>>
>> 4.
>> http://tomcat.apache.org/lists.html#tomcat-users
>> -> Please format your messages as plain text, not HTML.
>
> -> 1. Your exact version number of Apache Tomcat =?
> -> 5. Do not top-post.
>
> How do you use jasper? A fragment of your build.xml = ?
>
> In my home /home/jeffcai, I created a test directory ant_test.
>
> The content file /home/jeffcai/ant_test/build.xml
>
> As long as I put jstl.jar under the uriroot/WEB-INF/lib, it can pass 
> successfully.
>
> -------------------------------------------------------------------------------------------------------------------------
>
> <project name="Webapp Precompilation" default="all" basedir=".">
>
>    <property name="tomcat.home" 
> value="/home/jeffcai/software/apache-tomcat-8.0.8" />
>    <import file="${tomcat.home}/bin/catalina-tasks.xml"/>
>
>    <target name="jspc">
>
>     <jasper
>              validateXml="false"
>              
> uriroot="/home/jeffcai/software/apache-tomcat-7.0.54/webapps/examples/jsp/tagplugin"
>              outputDir="/tmp/tagplugin/WEB-INF/src" />
>   </target>

Try setting "classPath" attribute on <jasper> element.

http://svn.apache.org/viewvc/tomcat/tc7.0.x/tags/TOMCAT_7_0_54/java/org/apache/jasper/JspC.java?view=markup#l766

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to