character encoding problem

Hi all,

I'm having a problem with utf8 character encoding.

I followed steps from other thrads on this subject and did all the work in MySQL database, servlets and jsp pages, but I'm stuck now with struts-config file and connection url.

After I add

<set-property property="url" value="jdbc:mysql://localhost:3306/ivydb?useEncoding=true&characterEncoding=utf8" />

to <data source> in my struts-config file, I get following error:

The reference to entity"characterEncoding" must end with the';' delimiter. [17]

Any help much appreciated.

[711 byte] By [djordjewa] at [2007-11-27 4:05:52]
# 1

see this thread http://forum.java.sun.com/thread.jspa?threadID=782555&tstart=105

I think the syntax of your url property is incorrect because of the limitation of the struts config.

why don't you use an app server datasource configuration instead ?

(example: http://www.roseindia.net/struts/strutsdatasourcemanagerontomcat5.shtml)

Message was edited by:

java_2006

java_2006a at 2007-7-12 9:10:54 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...