Re: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs

2003-03-28 Thread Steve Downey
What about using external entities? ie: ?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 jspservlet system jspservlet.xml ] then, between the servlet and servlet

Re: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs

2003-03-24 Thread Craig R. McClanahan
On Fri, 21 Mar 2003, Remy Maucherat wrote: Date: Fri, 21 Mar 2003 12:05:26 +0100 From: Remy Maucherat [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Subject: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs Hi,

Re: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs

2003-03-24 Thread Costin Manolache
Craig R. McClanahan wrote: Many app servers have private deployment descriptors for extra information, similar to what Remy is proposing -- indeed, one could claim that Tomcat does this already with how we use $CATALINA_HOME/conf/web.xml to set default behavior (well, at least until Costin's

RE: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs

2003-03-21 Thread John Trollinger
-Original Message- From: Chris Brown [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 6:43 AM To: Tomcat Developers List Subject: Re: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs Hi Remy, It might be worth COPYING the original web.xml at deployment time, to make

Re: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs

2003-03-21 Thread Remy Maucherat
John Trollinger wrote: Remy, I think it would be nice to have a pre-compilier like JspC used to be. The precompile part of the jsp spec is just not that handy when trying to do builds and having ant tasks pass or fail based on the jsp and compiling jsp pages into servelts is not an option for

Re: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs

2003-03-21 Thread Costin Manolache
Remy Maucherat wrote: Hi, It is not very convinient or easy to insert the declarations for compiled JSPs into the webapp's web.xml file. It also has the disadvantage of adding a lot of mess in the web.xml, which the user may not like. For that reason, I propose that Tomcat parses a new

Re: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs

2003-03-21 Thread Remy Maucherat
Costin Manolache wrote: Remy Maucherat wrote: Hi, It is not very convinient or easy to insert the declarations for compiled JSPs into the webapp's web.xml file. It also has the disadvantage of adding a lot of mess in the web.xml, which the user may not like. For that reason, I propose that

Re: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs

2003-03-21 Thread Bill Barker
- Original Message - From: Remy Maucherat [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Sent: Friday, March 21, 2003 3:05 AM Subject: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs Hi, It is not very convinient or easy to insert the declarations for

Re: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs

2003-03-21 Thread Tim Funk
Could an alternate hack be to modify JspServlet to allow an additional init parameter which would be the file which contains the mapping of the precompiled jsp's? The config file could just be the web.xml snippet generated by the precompilation process. This way web.xml isn't touched and if

Re: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs

2003-03-21 Thread Costin Manolache
The main point is to _not_ hack anything, but just use the standard. If you precompile your app - and include jasper-runtime.jar in WEB-INF/lib - the result should work in _any_ container - the precompiled jsps are _just_ regular servlets that happen to use a lib and extend from a base class.

Re: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs

2003-03-21 Thread Remy Maucherat
Costin Manolache wrote: The main point is to _not_ hack anything, but just use the standard. If you precompile your app - and include jasper-runtime.jar in WEB-INF/lib - the result should work in _any_ container - the precompiled jsps are _just_ regular servlets that happen to use a lib and

Re: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs

2003-03-21 Thread Costin Manolache
Remy Maucherat wrote: I agree that using ant replace is a hack - the right solution would be to read the XML with DOM, insert the elements in the right place, and save back ( DOM - so we don't loose comments ). Or even read it as a file, and use regexp. No problem if we save the original

Re: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs

2003-03-21 Thread Costin Manolache
Remy Maucherat wrote: Costin Manolache wrote: The main point is to _not_ hack anything, but just use the standard. If you precompile your app - and include jasper-runtime.jar in WEB-INF/lib - the result should work in _any_ container - the precompiled jsps are _just_ regular servlets that

Re: [5.0] [PROPOSAL] Extra web.xml to declare compiled JSPs

2003-03-21 Thread Remy Maucherat
Costin Manolache wrote: Remy Maucherat wrote: I don't know. jasper-compiler is needed only to support development use cases, it obviously shouldn't be used on production servers. We are mixing 2 very different use cases here: - development - you don't need to precompile and jasper-compiler is