tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25903] New: - taglib error with setter not found is too poor
Date Mon, 05 Jan 2004 16:01:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25903>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25903

taglib error with setter not found is too poor

           Summary: taglib error with setter not found is too poor
           Product: Tomcat 4
           Version: 4.1.24
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: guardianofsteel@netscape.net


HereĀ“s a patch to solve it.

  Regards,
  Edson

--- Generator.java      2004-01-05 13:29:33.543612800 -0300
+++ blah.java   2004-01-05 13:26:00.367080000 -0300
@@ -1747,11 +1747,20 @@
                if (attrValue == null) {
                    continue;
                }
+
+               StringBuffer sbMsg = null;
                String attrName = attrs[i].getName();
                Method m = handlerInfo.getSetterMethod(attrName);
                if (m == null) {
-                   err.jspError(n, "jsp.error.unable.to_find_method",
-                                attrName);
+                               sbMsg = new StringBuffer( );
+                               sbMsg.append( "jsp.error in [ " );
+                               sbMsg.append( handlerInfo.getTagHandlerClass( ).
getName( ));
+                               sbMsg.append( " ], unable.to_find_method " );
+
+                   err.jspError(
+                               n,
+                       sbMsg.toString( ),
+                                       attrName);
                }

                Class c[] = m.getParameterTypes();

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message