Summary: | Capitalize work erroneously. | ||
---|---|---|---|
Product: | Taglibs | Reporter: | Alexander Litvin <alexander_litvin> |
Component: | String Taglib | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 1.1 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Patchfile to fix the capitalization in <string:capitalize> to only affect the first word. |
Description
Alexander Litvin
2004-08-25 11:20:19 UTC
This bug is due to two issues: 1) The source for both tags uses commons-lang WordUtils.capitalize(String). 2) WordUtils does not support capitalization of only the first letter of the first word (WordUtils.capitalize(String) and WordUtils.capitalizeFully(String) both affect all words within the string). I have attached a patch. Created attachment 12523 [details]
Patchfile to fix the capitalization in <string:capitalize> to only affect the first word.
I think this was erroneously marked as fixed, I don't see any modifications in cvs. Now fixed. I switched it from using WordUtils.capitalize to StringUtils.capitalize. (It was using capitalise before, which became deprecated as British spelling, and a mistake was made in choosing how to solve the deprecation). |