ant doubt using war task

H

harryos

hi
i am learning to use jsp in web apps.I have given the following
directory structure for my web app

src-for .java files
web-for jsp files
lib-for jar files
meta-for web.xml

I want to use some .jspf files that contain some directives (like
taglib inclusions) and want to use it in my jsp files like
<%@ include file="/WEB-INF/jspf/taglib-inc.jspf" %>

My build.xml has this target definition for create-war

<target name="create-war" depends="compile" >
<war destfile="${dist}/${context-path}.war"
webxml="${meta}/web.xml">
<classes dir="${build}"/>
<lib dir="${lib}"/>
<fileset dir="${web}"/>
</war>
</target>

This will create a war file where the structure is

WEB-INF----web.xml
WEB-INF\classes --al .classes
WEB-INF\lib ---.jar files

How should i modify the target definition sothat the .jspf files can
be included in WEB-INF/jspf directory?Where exactly should i put
the .jspf files?
pls help

harry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top