tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evgeny Gesin <>
Subject Re: JSTL: POST vs GET
Date Fri, 06 Feb 2004 19:43:08 GMT
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



3. A "wrapper" Tile page declares
<%@ page language="java" contentType="text/html;
charset=UTF-8" %>

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">
  <fmt:message key="header" />
... <-- here are all JSP/HTML tags

JSP may also use <fmt:> to format numbers and
currencies. Please ask if you need more information.

You can visit and see that all
pages are UTF-8 encoded.

A characterEncodingFilter sets encoding

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 


everything works fine. What is wrong ?

Evgeny Gesin
Javadesk CEO / Founder

--- Kris Schneider <> wrote:
> Can you post a little more detail on what you mean
> by "adding JSTL"? Which tags
> are you using?
> Quoting Evgeny Gesin <>:
> > 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 <>
> D.O.Tech       <>
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message