ASF Bugzilla – Attachment 19692 Details for
Bug 41606
The jspInit method is called twice.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to prevent double jspInit() when a JSP is set in web.xml to load-on-startup
jasper-Compiler.patch (text/plain), 1006 bytes, created by
Chris Halstead
on 2007-03-09 12:42:55 UTC
(
hide
)
Description:
Patch to prevent double jspInit() when a JSP is set in web.xml to load-on-startup
Filename:
MIME Type:
Creator:
Chris Halstead
Created:
2007-03-09 12:42:55 UTC
Size:
1006 bytes
patch
obsolete
>Index: jasper/src/share/org/apache/jasper/compiler/Compiler.java >=================================================================== >--- jasper/src/share/org/apache/jasper/compiler/Compiler.java (revision 516088) >+++ jasper/src/share/org/apache/jasper/compiler/Compiler.java (working copy) >@@ -296,6 +296,15 @@ > String[] smap = generateJava(); > if (compileClass) { > generateClass(smap); >+ // Fix for bugzilla 41606 >+ // Set JspServletWrapper.servletClassLastModifiedTime after successful compile >+ String targetFileName = ctxt.getClassFileName(); >+ if (targetFileName != null) { >+ File targetFile = new File(targetFileName); >+ if (targetFile.exists() && jsw != null) { >+ jsw.setServletClassLastModifiedTime(targetFile.lastModified()); >+ } >+ } > } > } finally { > if (tfp != null) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41606
: 19692