webwork/src/main/webwork/dispatcher ServletDispatcher.java,1.62,1.63
[email protected] Fri, 31 Oct 2003 21:17:33 -0800
| Newsgroups | gmane.comp.java.open-symphony.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/opensymphony/webwork/src/main/webwork/dispatcher In directory sc8-pr-cvs1:/tmp/cvs-serv11443/src/main/webwork/dispatcher Modified Files: ServletDispatcher.java Log Message: Fix for WW-215 Index: ServletDispatcher.java =================================================================== RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/dispatcher/ServletDispatcher.java,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -r1.62 -r1.63 --- ServletDispatcher.java 17 Jun 2003 15:40:01 -0000 1.62 +++ ServletDispatcher.java 1 Nov 2003 05:17:31 -0000 1.63 @@ -42,6 +42,10 @@ * The command JavaBeans can be found in a package prefixed with either * of the package names in the comma-separated "packages" servlet init parameter. * + * Modified by Raymond Lai ([email protected]) on 1 Nov 2003: + * modified wrapRequest() to set the character encoding of HttpServletRequest + * using the parameter "webwork.i18n.encoding" in webwork.properties. + * * @author Rickard Öberg ([email protected]) * @author Matt Baldree ([email protected]) * @version $Revision$ @@ -250,6 +254,10 @@ */ private HttpServletRequest wrapRequest(HttpServletRequest request) { + try { + request.setCharacterEncoding(Configuration.getString("webwork.i18n.encoding")); + } catch (Exception e) {} + // don't wrap more than once if (request instanceof MultiPartRequestWrapper) { @@ -278,7 +286,7 @@ { return "<p><small><small><pre>" + getStackTrace(t) + "</pre></small></small></p>"; } - + /** * Get the stack trace of the throwable and return as a String * ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/