You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mathias Herberts <Ma...@iroise.net> on 2001/11/19 00:42:32 UTC

Problem with -p option of jspc.sh

Hi,

I ran into a problem using jspc.sh with tomcat 3.2.3 when using the -p
<package> option.

It seems all the java files generated indeed include a 'package
<package>;' statement,

but the web.xml fragment generated is wrong for all jsp files which are
in the main webapp dir (at the same level as WEB-INF).

>From the source it appears JspC is using the getPackageName method of
the CommandLineCompiler class to retrieve the package name to include in
the servlet definition. But the CommandLineCompiler class in its
computePackageName method ignores
the package set with the -p option for all jsp files in the main webapp
dir.

The impact tis that the web.xml fragment must be modified manually in
order for it to
function properly.

Has anyone seen a solution for this problem ?

Mathias.

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>