Weblogic-hack doesn't use the chosen encoding

Description

I have chosen the iso-8859-1 encoding in my web.xml:

1 2 3 4 <init-param> <param-name>LocalePicker.Locales</param-name> <param-value>en:iso-8859-1</param-value> </init-param>

I would expect this to apply throughout the whole system (or at least the Stripes-part of it) but the Weblogic-hack added in 1.5.7 (due to and STS-834) always defaults to UTF8.

This is probably because the StripesFilter only applies to the REQUEST dispatcher type but the Weblogic-hack is only used in INCLUDE's. This code-snippet was found in net.sourceforge.stripes.tag.layout.LayoutContext:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 final HttpServletResponse response = new HttpServletResponseWrapper( (HttpServletResponse) pageContext.getResponse()) { @Override public String getCharacterEncoding() { return os.getCharset(); } @Override public void setCharacterEncoding(String charset) { os.setCharset(charset); } @Override public ServletOutputStream getOutputStream() throws IOException { return os; } @Override public PrintWriter getWriter() throws IOException { return writer; } }; pageContext.getRequest().getRequestDispatcher(relativeUrlPath) .include(pageContext.getRequest(), response);

setCharacterEncoding is invoked on the ServletResponse in the StripesFilter, but since the filter is only used one time per request it makes no difference.

The Stripes.war contains a simple application where bug can be reproduced. Beware that it's the same war-file as so don't push the button or you will get stucked

Environment

Windows 7 Pro
Weblogic 10.3.6.0
Tested from Eclipse Kepler

Status

Assignee

Unassigned

Reporter

"Failed to Retrieve User "

Labels

Tester

None

Components

Affects versions

Release 1.5.7

Priority

Minor
Configure