Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Struts2, tiles2 and character encoding problem

Struts2, tiles2 and character encoding problem

2007-02-06       - By Joe Germuska

 Back
Reply:     1     2     3     4     5     6     7  

Are you using the newest version of Tiles?  There was a bug in which the
content types were not being set in some cases; I was using a JSP page
attribute to set the content type, not the other options, but it may be
related.

For everyone who is using Tiles 2, note that very soon now, the SNAPSHOT
version of Tiles will be changing the URI for the TLD from
http://struts.apache.org/tags-tiles to http://tiles.apache.org/tags-tiles so
you will need to update the taglib declarations in your JSPs.  (We use a JSP
include directive like this

<%@ include file="/WEB-INF/tiles/_boilerplate.jsp" %>

so that we only have to change it in one place.  If you don't do something
like that, then I hope you have a good global search/replace option...  I
will probably build a new Maven SNAPSHOT in the next few days unless another
developer does it first.  (Note that if you're using Tiles 2, you probably
ought to monitor the dev@(protected) list in case no one mentions things like this
to the Struts user list.  In general, Apache projects expect discussion of
pre-release software to occur on dev lists, not user lists.)

For reference, the bug to which I refer is
https://issues.apache.org/struts/browse/TILES-28 (See http://LES-28.ora-code.com)

Joe


On 2/6/07, elin <elin.heinstedt@(protected)> wrote:
>
>
> Hi,
>
> I use struts2 and tiles2 in my web application. When my tiles result
> contains data with ??? and I write the data using el, the characters are
> not
> displayed correctly. If I write the data with a struts tag, for example
> <s:property> the characters are displayed correctly.
>
> If I do not to use a tiles result, just a simple jsp, the characters are
> displayed correctly when I use el.
>
> I have specified struts.i18n.encoding=UTF-8 (See http://UTF-8.ora-code.com).
>
> I use a CharacterEncodingFilter to set encoding to UTF-8 (See http://UTF-8.ora-code.com).
>
> I specify <meta http-equiv="content-type" content="text/html;
> charset=UTF-8 (See http://UTF-8.ora-code.com)"/> on the page.
>
> Any ideas?
>
> /Elin
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Struts2%2C-tiles2-and-character-encoding-problem
-tf3181491.html#a8828883
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


--
Joe Germuska
Joe@(protected) * http://blog.germuska.com

"The truth is that we learned from Jo?o forever to be out of tune."
-- Caetano Veloso

©2008 junlu.com - Jax Systems, LLC, U.S.A.