You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.
This jsp returns the response with Shift_JIS charset encoding.
The issue can be avoided using JAX-RS api, but it means duplicate declaration of the content type concurrently.
|| How to declare page uri || ||
| @view annotation | Declare @produces("text/html; charset=Shift_JIS"). |
| Return of uri string | Declare @produces("text/html; charset=Shift_JIS"). |
| Return of JAX-RS response | Set the MediaType.TEXTHTML_TYPE with ShiftJIS charset to the response. |
There is no problem if using servlet based MVC framework (like Struts).
The text was updated successfully, but these errors were encountered:
The pull request mvc-spec/mvc-spec#132 will change how view engines write the result of processing the view to the client. So handling of content type and charset is much more explicit.
IMHO the content type and encoding negotiation should be done by JAX-RS. That's how it works for all other JAX-RS responses.
Perhaps we could simply prevent that the JSP directives do any harm by modifying HttpServletResponse.setContentType() in our wrapper so that calling the method actually doesn't modify the content type? Perhaps it could emit a warning?
Original issue OZARK-67 created by kogawa88:
When fowarding the following jsp page via Ozark, the response always writes the body content with UTF-8 encoding.
This jsp returns the response with Shift_JIS charset encoding.
The issue can be avoided using JAX-RS api, but it means duplicate declaration of the content type concurrently.
|| How to declare page uri || ||
| @view annotation | Declare @produces("text/html; charset=Shift_JIS"). |
| Return of uri string | Declare @produces("text/html; charset=Shift_JIS"). |
| Return of JAX-RS response | Set the MediaType.TEXTHTML_TYPE with ShiftJIS charset to the response. |
There is no problem if using servlet based MVC framework (like Struts).
The text was updated successfully, but these errors were encountered: