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=10858>. 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=10858 Struts uses deprecated JDK1.3 URLEncode method Summary: Struts uses deprecated JDK1.3 URLEncode method Product: Struts Version: 1.0 Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Custom Tags AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Struts 1.0 is using the deprecated JDK1.3 java.net.URLEncoder.encode(String) method, which is deprecated because, quoting: "The resulting string may vary depending on the platform's default encoding. Instead, use the encode(String,String) method to specify the encoding" This problem is evident particularly when using the <html:link> to generate hyperlinks, as Unicode strings are not correctly encoded to UTF-8. A suggested solution would be to add your own encoding method to the struts lib, and perhaps use introspection to check if the newer, 2 argument, JDK1.4 method is available; if so, call this one, if not, call the one in strutslib. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>