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, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to