You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Henri Gomez <he...@gmail.com> on 2005/04/15 11:25:30 UTC
Re: DO NOT REPLY [Bug 34465] - jasper2 fails when there is no web.xml
My question on this thread.
Is it legal to precompile JSPs via Jasper2 when there is no web.xml ?
On 4/15/05, bugzilla@apache.org <bu...@apache.org> wrote:
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://issues.apache.org/bugzilla/show_bug.cgi?id=34465>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
> INSERTED IN THE BUG DATABASE.
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=34465
>
> ------- Additional Comments From hgomez@apache.org 2005-04-15 11:22 -------
> Well jasper2 could put jsp directive outside web.xml when pre-compiling :
>
> see this ant example:
>
> <jasper2
> validateXml="false"
> uriroot="${build.dir}/jspc/myapp"
> webXmlFragment="${build.dir}/dst/$myapp/WEB-INF/jsp.xml"
> outputDir="${build.dir}/${wnamei}-src"
> javaEncoding="ISO-8859-1"
> trimSpaces="true" />
>
> jasper2 jspc will put the jsp URI in jsp.xml, you could at a later time include
> in web.xml using <!ENTITY jsp SYSTEM "jsp.xml"> and &jsp.xml;
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd" [
>
> <!ENTITY jsp SYSTEM "jsp.xml">
>
> ]>
>
> <web-app>
>
> ....
>
> &jsp;
>
> </web-app>
>
> Be carefull &jsp; should be in the servlet-mapping area of your web.xml
>
> --
> Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org