Re: JspServlet Issue

2009-10-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mercy, On 10/10/2009 11:01 AM, Mercy wrote: > I has implemented this requirement,but still do not know the reason why > the whole operation can't be separated. The whole thing should be able to be implemented with no code written on your part. You sh

Re: JspServlet Issue

2009-10-10 Thread Mercy
Hi, Again, why not simply remove the requirement that development=false? There is nothing stopping you from recompiling JSP files explicitly with this configuration, right? The production application will not accept it. Why the second request? The compile/load step should be all handled in

Re: JspServlet Issue

2009-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mercy, On 10/9/2009 10:06 PM, Mercy wrote: > My JSP compiler is based on JspServletWrapper(Jasper compiler). Again, why not simply remove the requirement that development=false? There is nothing stopping you from recompiling JSP files explicitly wit

Re: JspServlet Issue

2009-10-09 Thread Mercy
Hi, When you say "load", do you mean loads the new Class object into memory? Yes. Why do you think the 404 has anything to do with failed compilation and/or loading? Is it possible you just have a broken URL or something? You *have* been messing around writing your own JSP compiler... My JSP

Re: JspServlet Issue

2009-10-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mercy, On 10/9/2009 1:53 PM, Mercy wrote: >> * Did you mean "compiles and /executes/ the JSP"? > > No,here means compiles and loads the JSP. When you say "load", do you mean loads the new Class object into memory? >> *Huh? Are you saying that if

Re: JspServlet Issue

2009-10-09 Thread Mercy
Hi chris, * Did you mean "compiles and /executes/ the JSP"? No,here means compiles and loads the JSP. *Huh? Are you saying that if you compile the JSP with one request then a second request to execute the JSP fails with a 404? Yes * Please define "wrong": does it fail (and generate some

Re: JspServlet Issue

2009-10-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mercy, On 10/9/2009 2:49 AM, Mercy wrote: > In my view, the JSP 11.4.2 spec says that if client adds the > *jsp_precompile > *parameter, the request will not execute the jsp page's service method Correct. It merely (re-)compiles the JSP page. >

Re: JspServlet Issue

2009-10-08 Thread Mercy
Hi Mark, In my view, the JSP 11.4.2 spec says that if client adds the jsp_precompile parameter, the request will not execute the jsp page's service method,what's more, JspServlet just compiles and loads new generated jsp servlet class, it's right, JspServlet works fine when JspServlet compiles a

Re: JspServlet Issue

2009-10-08 Thread Mark Thomas
Mercy wrote: > Hi, > > Yes, it just does on the first time request,I need to compile the > page when I need. What is wrong with the process described in JSP.11.4.2? Mark > > Kind regards, > Mercy > > On Thu, 08 Oct 2009 20:00:50 +0800, Konstantin Kolinko > wrote: > >> 2009/10/8 Mercy :

Re: JspServlet Issue

2009-10-08 Thread Mercy
Hi, Yes, it just does on the first time request,I need to compile the page when I need. Kind regards, Mercy On Thu, 08 Oct 2009 20:00:50 +0800, Konstantin Kolinko wrote: 2009/10/8 Mercy : Hi Kolinko, In order to implement requirement is that our application can't set devel

Re: JspServlet Issue

2009-10-08 Thread Konstantin Kolinko
2009/10/8 Mercy : > > Hi Kolinko, > >        In order to implement requirement is that our application can't set > development=true and needs to compile little of pages without restart need. Even if development=false, it compiles new pages.

Re: JspServlet Issue

2009-10-08 Thread Mercy
Hi Kolinko, In order to implement requirement is that our application can't set development=true and needs to compile little of pages without restart need. If I use the JspServlet , it compiles JSP Pages and loads them class and works fine, but If use my compiler to compile and load, the Js

Re: JspServlet Issue

2009-10-08 Thread Konstantin Kolinko
2009/10/7 Mercy : > Hi Mark, > >        I just want to compile the pages what i need, not all. Actually,the > most pages ware compiled by ANT,thus, our application does not set the > development parameter is true. > >        What's more , I did not re-invent the wheel rather than I re-use the > Jsp

Re: JspServlet Issue

2009-10-07 Thread Mercy
development=false. Mark I expect you response, thank you. :) Kind regards, Mercy On Wed, 07 Oct 2009 16:13:41 +0800, Mark Thomas wrote: --- Original Message --- From: Mercy To: "Tomcat Users List" Sent: 07/10/09, 08:57:24 Subject: Re: JspServlet Issue Hi Mark,

Re: JspServlet Issue

2009-10-07 Thread Mark Thomas
you response, thank you. :) > > Kind regards, > Mercy > > On Wed, 07 Oct 2009 16:13:41 +0800, Mark Thomas wrote: > >>> --- Original Message --- >>> From: Mercy >>> To: "Tomcat Users List" >>> Sent: 07/10/09, 08:5

Re: JspServlet Issue

2009-10-07 Thread Mercy
rLoader or URLClassLoader? I expect you response, thank you. :) Kind regards, Mercy On Wed, 07 Oct 2009 16:13:41 +0800, Mark Thomas wrote: --- Original Message --- From: Mercy To: "Tomcat Users List" Sent: 07/10/09, 08:57:24 Subject: Re: JspSe

Re: JspServlet Issue

2009-10-07 Thread Mark Thomas
> --- Original Message --- > From: Mercy > To: "Tomcat Users List" > Sent: 07/10/09, 08:57:24 > Subject: Re: JspServlet Issue > > Hi Mark, > > What did you mean "change" the app? Could you give more information? Don't set

Re: JspServlet Issue

2009-10-07 Thread Mercy
Hi Mark, What did you mean "change" the app? Could you give more information? Thank you. Kind regards, Mercy On Wed, 07 Oct 2009 15:50:28 +0800, Mark Thomas wrote: From: Mercy Ma To: users@tomcat.apache.org Sent: 07/10/09, 06:42:17 Subject: JspServlet Issue Hi

Re: JspServlet Issue

2009-10-07 Thread Mark Thomas
> From: Mercy Ma > To: users@tomcat.apache.org > Sent: 07/10/09, 06:42:17 > Subject: JspServlet Issue > > Hi there, > > I did write some code to create dynamic compiler for JSP pages, because our > application sets development options parameter to be false for JspSe

JspServlet Issue

2009-10-06 Thread Mercy Ma
Hi there, I did write some code to create dynamic compiler for JSP pages, because our application sets development options parameter to be false for JspServlet. In order to fulfill the requirement, I viewed the correlative code of Japser engine. At first, I implemented the Options , JspRuntimeCon