Hi

The "ServletResponse.setLocale" method looks pretty useful: it configures
the PrintWriter to the appropriate character set, set's the content type and
content language headers.  It's especially appealing because one can
retrieve the "Locale" from ServletRequest.getLocale and use that object in
the ServletResponse (eg.servletResponse.setLocale(localFromRequest)).

The problem, in the case of JSP,  is the following:

According to the JavaDoc on "ServletResponse" the "setLocale" method should
be called BEFORE "getWriter".  How would I use this method given the servlet
generated from my JSP has already grabbed the "Writer" by the time any
scriplet or JSP tag/directive I have can be executed?

Thanks,
Albert

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to