Hi Joe, Thanks for sending this. I tried it and it didn't do what I need. I discovered that you can only specify the character set in the <page-encoding> tag. You can't specify the content type. So I specified "UTF-8". When I look at the response headers sent by Resin, the character set is not included.
So far, the only way that I have discovered to communicate to the browser the character endcoding is by explicitly setting the content type via <%@ page contentType="text/html; charset=UTF-8" %> Using the JSP directive: <%@ page pageEncoding="UTF-8" %> and the web.xml tags that you mentioned in your email do not cause resin to modify any response headers to include the page encoding or character set. I wonder what the purpose of the pageEncoding directives are for. Or is it that Resin isn't working correctly. What I need are tags similar to what you specified by will set the default content type for all JSP pages in a Web app. I had also tried the following tags in web.xml: <locale-encoding-mapping-list> <locale-encoding-mapping> <locale>en_US</locale> <encoding>UTF-8</encoding> </locale-encoding-mapping> </locale-encoding-mapping-list> But they didn't work either. Joe, any chance you see something that I have missed? Thanks a lot. Keith Joe Dane wrote: > you can do this in the deployment descriptor, or presumably in the > resin config file as well. in the deployment descriptor, it'd look > something like > > <jsp-config> > <jsp-property-group> > <url-pattern>*.jsp</url-pattern> > <page-encoding>text/html; charset=UTF-8</page-encoding> > </jsp-property-group> > </jsp-config> > > that's from memory, but there's certainly something about this in the > JSP2.0 spec. > > On Oct 2, 2007, at 1:48 PM, Keith Fetterman wrote: > >> Hi, >> >> We want to convert the default page encoding for JSP pages to UTF-8. >> >> Is there a way to change the default page encoding for JSP pages in >> the >> resin.conf or web.xml files for a Web application? >> >> We have successfully done this for a specific page if we include the >> following directive in the JSP page: >> >> <%@ page contentType="text/html; charset=UTF-8" %> >> >> I was wondering if there is a way that can do this in the resin >> configuration so we don't have to do it for each JSP page. >> >> Thanks, >> >> Keith >> >> >> -- >> ----------------------------------------------------------------- >> Keith Fetterman 206-780-5670 >> Mariner Supply, Inc. [EMAIL PROTECTED] >> http://www.go2marine.com >> >> >> _______________________________________________ >> resin-interest mailing list >> resin-interest@caucho.com >> http://maillist.caucho.com/mailman/listinfo/resin-interest > -- ----------------------------------------------------------------- Keith Fetterman 206-780-5670 Mariner Supply, Inc. [EMAIL PROTECTED] http://www.go2marine.com _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest