WAR task and including jspf files in jsp

Discussion in 'Java' started by harryos, Dec 3, 2008.

  1. harryos

    harryos Guest

    hi,
    I am a newbie to ANT and jsp.
    I want to include a .jspf file in my jsp page using
    <%@ include file="/WEB-INF/jspf/taglib-inc.jspf" %>

    I have this web app structure
    mywebapp
    |------------src -for .java files
    |-------------web -for jsp files
    |-------------lib -for jar files
    |------------ meta -for web.xml
    |------------jspf --for jspf files

    I want to create a war file such that the jspf files in jspf directory
    ends up in WEB-INF directory of the war file.It doesn't seem right to
    put jspf fragments in the same directory as the jsp files.

    I couldn't figure out how to do this.can someone advise?

    thanks
    harry
    harryos, Dec 3, 2008
    #1
    1. Advertising

  2. harryos <> wrote in news:777be79f-1641-44db-918d-
    :

    > hi,
    > I am a newbie to ANT and jsp.
    > I want to include a .jspf file in my jsp page using
    ><%@ include file="/WEB-INF/jspf/taglib-inc.jspf" %>
    >
    > I have this web app structure
    > mywebapp
    > |------------src -for .java files
    > |-------------web -for jsp files
    > |-------------lib -for jar files
    > |------------ meta -for web.xml
    > |------------jspf --for jspf files
    >
    > I want to create a war file such that the jspf files in jspf directory
    > ends up in WEB-INF directory of the war file.It doesn't seem right to
    > put jspf fragments in the same directory as the jsp files.
    >
    > I couldn't figure out how to do this.can someone advise?
    >
    > thanks
    > harry
    >


    In my Netbeans-project I have simply src\WEB-INF\jspf folder, and the
    fragments there.

    Does it have to be more complex than that?

    Well. In another project, plain ant based, my war ant task contains


    <zipfileset prefix="WEB-INF/lib" dir="${lib.war.dir}" >
    <include name="**/*.jar" />
    </zipfileset>

    Could it be

    <zipfileset prefix="WEB-INF/jspf" dir="${src.jspf.dir}" >
    <include name="**/*.jspf" />
    </zipfileset>
    Donkey Hottie, Dec 3, 2008
    #2
    1. Advertising

  3. harryos

    harryos Guest

    On Dec 3, 9:50 pm, Donkey Hottie <> wrote:
    > Could it be
    >
    >         <zipfileset prefix="WEB-INF/jspf" dir="${src.jspf.dir}" >
    >             <include name="**/*.jspf" />
    >         </zipfileset>



    yes sir! many thanks!!

    >In my Netbeans-project I have simply src\WEB-INF\jspf folder, and the
    >fragments there.
    >Does it have to be more complex than that?


    actually i am going thru a text book..and it has an example doing it
    this way ,but omits the build script

    thanks again
    harry
    harryos, Dec 3, 2008
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Java Job
    Replies:
    1
    Views:
    4,184
    Mike Schilling
    Aug 5, 2004
  2. Victor
    Replies:
    0
    Views:
    8,826
    Victor
    Sep 1, 2004
  3. yzzzzz

    Parsing jspf files like jspx

    yzzzzz, Jan 12, 2005, in forum: Java
    Replies:
    0
    Views:
    752
    yzzzzz
    Jan 12, 2005
  4. Replies:
    0
    Views:
    2,592
  5. harryos

    ant doubt using war task

    harryos, Dec 3, 2008, in forum: Java
    Replies:
    0
    Views:
    289
    harryos
    Dec 3, 2008
Loading...

Share This Page