DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16285>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16285

Japser (JSPC) can't generate appropriate package structure

           Summary: Japser (JSPC) can't generate appropriate package
                    structure
           Product: Tomcat 4
           Version: 4.1.18
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Jasper 2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I use Ant to define the Jasper as a Ant Task to generate the Java source from 
JSP files.
===================================================================
<taskdef classname="org.apache.jasper.JspC" name="jasper2" >
   <classpath refid="run.classpath"/>
</taskdef>
    
<jasper2 verbose="0" package="eric.test.jsp" uriroot="${basedir}/myserv"
 webXmlFragment="${basedir}/jsp/web.xml" outputDir="${basedir}/jsp" />
========================================================================

In fact, all JSP files can be generated to Java sources. The problem is that  
all the packages of the generated Java source are same as "eric.test.jsp".
Although the JSPs in different folder.

For example:

$WEB_ROOT/index.jsp
$WEB_ROOT/admin/index.jsp

The above two "index.jsp" will be generated to "index_jsp.java" in different 
folders. But they have the same package name "eric.test.jsp". As the result, 
when I compiled those Java sources, it failed for "Duplicate class name ...".

Jasper seems can't add the extra package path for the extra folder in the 
$WEB_ROOT.

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

Reply via email to