kinman      2002/12/02 18:08:31

  Modified:    jasper2/src/share/org/apache/jasper/servlet JspServlet.java
  Log:
  - Comment on why jsp_precompile=false behaves like jsp_precompile=true. :)
  
  Revision  Changes    Path
  1.14      +8 -3      
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/servlet/JspServlet.java
  
  Index: JspServlet.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/servlet/JspServlet.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- JspServlet.java   22 Oct 2002 10:13:19 -0000      1.13
  +++ JspServlet.java   3 Dec 2002 02:08:31 -0000       1.14
  @@ -182,6 +182,11 @@
           if (value.equals("true")) {
               return (true);             // ?jsp_precompile=true
           } else if (value.equals("false")) {
  +         // Spec says if jsp_precompile=false, the request should not
  +         // be delivered to the JSP page; the easiest way to implement
  +         // this is to set the flag to true, and precompile the page anyway.
  +         // This still conforms to the spec, since it says the
  +         // precompilation request can be ignored.
               return (true);             // ?jsp_precompile=false
           } else {
               throw new ServletException("Cannot have request parameter " +
  
  
  

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

Reply via email to