The JSP spec assumes a default character encoding of ISO-8859-1 for GET/POST
parameters.
You will need to convert the parameter strings received by servlets/JSP
pages into bytes with
their character encoding as ISO-8859-1 and convert them back to Java strings
with your own
favorite character encod
You may insert following code in your servlets/jsp pages to avoid
proxies/browsers caching contents:
response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", "0");
It's an annoying problem due to a dummy assumption made by IE and som
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> Servlet Specification 2.3 (Proposed Final Draft 2), Section 5.4 (p. 44):
>
> 'The default encoding of a response is "ISO-8859-1"
> if none has been specified by the servlet programmer.'
I am a servlet programmer also,
why can't I spe
I read some code in catalina & jasper, and found that:
There is a setCharacterEncoding() for servlet request now; but I greped all Tomcat
code, and found nowhere called it. It means, by default, Tomcat use a default encoding
of '8859_1'. There is no option in server.xml/web.xml for tomcat to se
ource code spat out at me COMPLETELY unprocessed. (Note
that there should be a content type after the GET command, which
appears to be why this is happening.)
What's going on?
Note: PLEASE email me any responses! I'm not subscribed to the
tomcat-dev mailing list!
Thanks,
Alec Smecher
[EMAIL PROTECTED]