tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gustavo Nestares" <gustavo_nesta...@yahoo.com.ar>
Subject Transalating & Compiling JSP: Name conflicts
Date Tue, 04 Feb 2003 15:38:07 GMT
Hi,
    I'm trying to pre-compile my jsp pages of my web app in order to be free
of statics errors (those erros that can be catched in compilation face). I
have no problem adding a task to ANT for the transalting face, the problem
emerge when i want to compile my   "page_jsp.java". In my web app i have two
folder with a page named "index.jsp" in each one. Both pages are translated
to diferent foldes in the "work" directory with names "index_jsp.java", both
belonging to the same package!!!
    When i want to compile this, the following errors arises:

C:\eclipse\workspace\FWIC\work\structure\company\index_jsp.java:10:
duplicate class: org.apache.jsp.index_jsp
public class index_jsp extends HttpJspBase {
^
C:\eclipse\workspace\FWIC\work\structure\department\index_jsp.java:9:
duplicate class: org.apache.jsp.index_jsp
public class index_jsp extends HttpJspBase {
^

    thnks,

                gusnes.-

pd: here is part of my ant script:

<target name="translate-jsp" >
    <delete dir="${work}"/>
    <mkdir dir="${work}"/>
    <jspc srcdir="${context}"  destdir="${work}"  verbose="9"
uriroot="${context}" >
        <classpath refid="tomcat-classpath"/>
        <include name="**/*.jsp" />
    </jspc>
</target>

<target name="compile-jsp" >
    <javac srcdir="${work}"  source="1.4" debug="${compile.debug}"
                deprecation="${compile.deprecation}"
optimize="${compile.optimize}"
                nowarn="on">
        <classpath refid="fwic-classpath" />
        <classpath refid="tomcat-classpath"/>
    </javac>
</target>


Ahora podés usar Yahoo! Messenger desde tu celular. Aprendé cómo hacerlo en Yahoo! Móvil:
http://ar.mobile.yahoo.com/sms.html

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message