Encoding trouble.

knightinmind <[email protected]> Mon, 25 Dec 2006 02:12:03 CST
Newsgroups gmane.comp.web.sitemesh.general
Message-ID <33519117.1167034360391.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
Good day, all.
I'm trying to show a jsp page with UTF-8 encoding via sitemesh and could no=
t get it work. The terms in russian appear rubbish. If I try to view that j=
sp directly (not via sitemesh decorator) - it works just fine.
My environment is as follows:
WebLogic v8.1
sitemesh 2.3

decorator.xml:
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<decorators>
  <excludes>
    <pattern>/*.html</pattern>
    <pattern>/exclude/*</pattern>
=09<pattern>/*.jsp</pattern>
  </excludes>
  <decorator name=3D"mydecorator" page=3D"/mainTemplate.jsp">
    <pattern>/*</pattern>
  </decorator>
</decorators>


mainTemplate.jsp:
<%@ page contentType=3D"text/html; charset=3Dutf-8" language=3D"java" error=
Page=3D"errorPage.jsp" %>
<%@ taglib uri=3D"http://www.opensymphony.com/sitemesh/decorator" prefix=3D=
"decorator" %>

<head>
<decorator:head>
</decorator:head>
</head>
<body>
<decorator:body>
        </decorator:body>
</body>
</html>

editTransaction.jsp (the erroneous one):
<%@page contentType=3D"text/html; charset=3Dutf-8" language=3D"java" errorP=
age=3D"errorPage.jsp"%>
<%@taglib uri=3D"http://java.sun.com/jstl/core" prefix=3D"c"%>
<%@taglib uri=3D"http://java.sun.com/jstl/fmt" prefix=3D"fmt"%>
<head>
</head>
<body>
<div id=3D"background1">
  <form action=3D"submitTransaction.fcd" method=3D"post">
  <table>
    <tbody>
      <tr>
        <td>          VERSION:
          <input type=3D"text" id=3D"VERSION" size=3D"1" maxlength=3D"1" na=
me=3D"VERSION" value=3D'<c:out value=3D"${transaction.version}"/>'>
        </td>
        <td>          =C3=90=C2=A2=C3=90=C2=B8=C3=90=C2=BF =C3=91=C2=81=C3=
=90=C2=BE=C3=90=C2=BE=C3=90=C2=B1=C3=91=C2=89=C3=90=C2=B5=C3=90=C2=BD=C3=90=
=C2=B8=C3=91=C2=8F:
          <input type=3D"text" id=3D"ACTION" size=3D"1" maxlength=3D"1" nam=
e=3D"ACTION" value=3D'<c:out value=3D"${transaction.action}"/>'>
        </td>
.....
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=3D55231&messageID=3D110=
155#110155

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]