Bug 35386 - Error messages use the wrong key
Summary: Error messages use the wrong key
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 5.5.9
Hardware: All other
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-16 17:05 UTC by Kurt Huwig
Modified: 2005-07-21 14:51 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Huwig 2005-06-16 17:05:02 UTC
At several places in the code, error messages are referenced by
'jsp.error.useBean', but in the corresponding property-files, 'useBean' is
written all lowercase: 'usebean'. Therefore the error messages are not found:

grep -r "jsp.error.useBean" jakarta-tomcat-jasper/jasper2/
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/BeanRepository.java:
    errDispatcher.jspError(n, "jsp.error.useBean.badScope");
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Validator.java:
             err.jspError(n, "jsp.error.useBean.missingType");
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Validator.java:
             err.jspError(n, "jsp.error.useBean.duplicate");
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Validator.java:
             err.jspError(n, "jsp.error.useBean.noSession");
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Validator.java:
             err.jspError(n, "jsp.error.useBean.notBoth");

but

jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/LocalStrings.properties:jsp.error.usebean.not.both=useBean:
Can't specify both class and beanName attribute:
Comment 1 Yoav Shapira 2005-07-21 22:51:10 UTC
Corrected spelling in source code.  Thanks for pointing this out.