|
|
|
[
Permlink
| « Hide
]
Mathias Bogaert - [12/Nov/04 04:17 PM ]
Richard, can you tell me if this 'patch' is correct? I'm scared it might break other stuff.
/**
* the default writer writes directly to the response output stream */ protected Writer getWriter() throws IOException { return ServletActionContext.getResponse().getWriter(); } I've read the code and I can confirm the above snippet is correct. Richard. Didn't use getWriter (since only getWriter OR getOutputStream is used, was same issue for SiteMesh). Fixed by doing
protected Writer getWriter() throws IOException { return new OutputStreamWriter( ServletActionContext.getResponse().getOutputStream(), ServletActionContext.getResponse().getCharacterEncoding() ); } | ||||||||||||||||||||||||||||||||||||||||||||||