Thanks Rashmi for clearing that up. I will try to get
spring to stop setting the Locale.
>Christopher writes
> The character set has to be chosen at some point. It
> looks like what you are suggesting is that you want
> to actually report an incorrect character set (or
> none, which is just as
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Sean,
Sean Bridges wrote:
> I did a little more digging, and it seems this bug
> only appears when the locale is set. My full servlet
> code is,
>
[snip]
> arg1.setLocale(arg0.getLocale());
> arg1.setContentType("application/foobar");
>
However if you insist on only getting "application/xml" --- it is
still achievable (even if the Locale is set),
if you perform a HTTP Redirect
response.sendRedirect("/p/test81/test81.jsp"); from the Servlet to the
JSP instead of a HTTP Forward.
-Rashmi
--
Hi Sean,
You are right with the fact that the character set encoding does get
appended to the Content-Type header when the Locale is set.
However, according to the API docs:
http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletResponse.html#setLocale(java.util.Locale)
" It also se
Thanks for the reply Rashmi.
I did a little more digging, and it seems this bug
only appears when the locale is set. My full servlet
code is,
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
Hi Sean,
I made a little mistake w.r.t http://www.ietf.org/rfc/rfc3023.txt , I
meant to point to
3.2 Application/xml Registration
MIME media type name: application
MIME subtype name: xml
Mandatory parameters: none
Optional parameters: charset
Although lis
Hi Sean,
Thank you for defining the problem.
I tried a few variations of code in Servlets and JSPs and was able to
get only "application/xml" instead of "application/xml;some character
encoding" .
The only time I got "application/xml;some character encoding" was when
there was a conflicting set
Hi Sean,
It's a little difficult IMO to refer to multiple bugs to determine
what the problem might be.
Please present a small snippet of code relevant to the problem, it
makes it more straight forward for us to understand and respond to the
problem.
If you are looking to set an uniform characte