On Fri, 6 Feb 2004, Evgeny Gesin wrote: > Hi, > I will provide a little more information, may be that > will be important. > > 1. I use an in-house developed Tiles, similar to > Struts, so each page is make up of of dinamically > included pages, for example, header, content and > footer JSPs. > > 2. I use only i18n from JSTL package, so web.xml have > a single declaration for that JSTL library as below > > <taglib> > <taglib-uri>fmt</taglib-uri> > > <taglib-location>/WEB-INF/tld/fmt-1_0-rt.tld</taglib-location> > </taglib> > > 3. A "wrapper" Tile page declares > <%@ page language="java" contentType="text/html; > charset=UTF-8" %>
All of your JSP pages should include this, not just your wrapper. Otherwise your included pages will be including ISO-8859-1 content into your UTF-8 wrapper. -- Martin Cooper > > 4. A "template" Tile page declares > <META HTTP-EQUIV="content-type" CONTENT="text/html; > charset=UTF-8" /> > > 5. Each "included" JSP page has these lines > > <%@ taglib uri='fmt' prefix='fmt' %> > <jsp:useBean id="locale" scope="session" > class="java.util.Locale" /> > <fmt:setLocale value="<%= locale %>" /> > <fmt:bundle basename="bundle"> > <TABLE> > <fmt:message key="header" /> > <FORM ACTION="anAction" METHOD=GET> > ... <-- here are all JSP/HTML tags > </FORM> > </TABLE> > </fmt:bundle> > > JSP may also use <fmt:> to format numbers and > currencies. Please ask if you need more information. > > You can visit http://www.javadesk.com and see that all > pages are UTF-8 encoded. > > A characterEncodingFilter sets encoding > > request.setCharacterEncoding("UTF-8"); > response.setContentType("text/html; charset=UTF-8"); > > Now, if I submit the above web page, all UTF-8 encoded > data became gibberish. If I replace > > <FORM ACTION="anAction" METHOD=GET> > with > <FORM ACTION="anAction" METHOD=POST> > > everything works fine. What is wrong ? > > Evgeny Gesin > Javadesk CEO / Founder > > > --- Kris Schneider <[EMAIL PROTECTED]> wrote: > > Can you post a little more detail on what you mean > > by "adding JSTL"? Which tags > > are you using? > > > > Quoting Evgeny Gesin <[EMAIL PROTECTED]>: > > > > > After adding JSTL to UTF-8 encoded JSP pages all > > form > > > data sent via GET are gibberish. The POST does > > work. > > > What can be the problem? > > > > > > Evgeny /Javadesk/ > > > > -- > > Kris Schneider <mailto:[EMAIL PROTECTED]> > > D.O.Tech <http://www.dotech.com/> > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Finance: Get your refund fast by filing online. > http://taxes.yahoo.com/filing.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]