You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2002/06/21 01:02:16 UTC
cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler JspDocumentParser.java
costin 2002/06/20 16:02:16
Modified: jasper2/src/share/org/apache/jasper/compiler
JspDocumentParser.java
Log:
Use the cached TLDLibraryInfo.
This is not perfect - we may look at the file timestamp and re-read it
if modified. If you have problems with cached TLDLibInfo - you can comment
this part out.
( I can add a flag to turn on caching )
Revision Changes Path
1.3 +12 -8 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspDocumentParser.java
Index: JspDocumentParser.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspDocumentParser.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- JspDocumentParser.java 13 Jun 2002 18:56:18 -0000 1.2
+++ JspDocumentParser.java 20 Jun 2002 23:02:16 -0000 1.3
@@ -439,11 +439,15 @@
uri = uri.substring(URN_JSPTLD.length());
}
- // get the location
- String[] location = ctxt.getTldLocation(uri);
-
- TagLibraryInfo tl = new TagLibraryInfoImpl(ctxt, prefix, uri,
- location, err);
+ TldLocationsCache cache=ctxt.getOptions().getTldLocationsCache();
+ TagLibraryInfo tl=cache.getTagLibraryInfo( uri );
+ if( tl==null ) {
+ // get the location
+ String[] location = ctxt.getTldLocation(uri);
+
+ tl = new TagLibraryInfoImpl(ctxt, prefix, uri,
+ location, err);
+ }
taglibs.put(prefix, tl);
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>