This patch fixes the reopen #3529.  Now jspc works for taglib when -webapp is
not specified.

The logic used in JspC.java to get the uri root and base is still very
convoluted and should be a prime target for rewrite, maybe later.


misto% runsocks cvs diff -u JspC.java
Index: JspC.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/JspC.java,
v
retrieving revision 1.11
diff -u -r1.11 JspC.java
--- JspC.java   2001/09/14 05:02:15     1.11
+++ JspC.java   2001/09/17 23:37:53
@@ -699,6 +699,16 @@
             } else {
                 try {
                     if (ubase != null) {
+                        try {
+                            JspCServletContext context =
+                                new JspCServletContext
+                                (new PrintWriter(System.out),
+                                 new URL("file:" + ubase.replace('\\','/') + 
"/"));
+                            tldLocationsCache = new TldLocationsCache(context);
+                        } catch (MalformedURLException me) {
+                            System.out.println("**" + me);
+                        }
+
                         File fjsp = new File(file);
                         String s = fjsp.getCanonicalPath();
                         if (s.startsWith(ubase)) {

Reply via email to