Improve error message to include TDL uri when there is a problem with a tld so user...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 5 Jul 2009 13:25:21 +0000 (13:25 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 5 Jul 2009 13:25:21 +0000 (13:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@791243 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/compiler/TagLibraryInfoImpl.java
java/org/apache/jasper/resources/LocalStrings.properties

index faad838..05372f9 100644 (file)
@@ -278,11 +278,11 @@ class TagLibraryInfoImpl extends TagLibraryInfo implements TagConstants {
 
         if (tlibversion == null) {
             err.jspError("jsp.error.tld.mandatory.element.missing",
-                    "tlib-version");
+                    "tlib-version", uri);
         }
         if (jspversion == null) {
             err.jspError("jsp.error.tld.mandatory.element.missing",
-                    "jsp-version");
+                    "jsp-version", uri);
         }
 
         this.tags = new TagInfo[tagVector.size()];
index abf4acb..26f1067 100644 (file)
@@ -335,7 +335,7 @@ jsp.error.tld.fn.invalid.signature=Invalid syntax for function signature in TLD.
 jsp.error.tld.fn.duplicate.name=Duplicate function name {0} in tag library {1}
 jsp.error.tld.fn.invalid.signature.commaexpected=Invalid syntax for function signature in TLD.  Comma ',' expected.  Tag Library: {0}, Function: {1}.
 jsp.error.tld.fn.invalid.signature.parenexpected=Invalid syntax for function signature in TLD.  Parenthesis '(' expected.  Tag Library: {0}, Function: {1}.
-jsp.error.tld.mandatory.element.missing=Mandatory TLD element missing or empty: {0}
+jsp.error.tld.mandatory.element.missing=Mandatory TLD element {0} missing or empty in TLD {1} 
 jsp.error.dynamic.attributes.not.implemented=The {0} tag declares that it accepts dynamic attributes but does not implement the required interface
 jsp.error.nomatching.fragment=Cannot find an attribute directive (with name={0} and fragment=true) prior to the fragment directive.
 jsp.error.attribute.noequal=equal symbol expected