RE: Please Help: Tomcat 5.5.17 SSL Help

2007-02-22 Thread PATTUS, Jean-Philippe
You should launch tomcat with this java option -Djavax.net.debug=ssl,
you will have probably more details about the problem

-Message d'origine-
De : Blake Smith [mailto:[EMAIL PROTECTED]
Envoye : vendredi 23 fevrier 2007 03:34
A : users@tomcat.apache.org
Objet : Please Help: Tomcat 5.5.17 SSL Help


Hi,

 

I am running a Red Hat Enterprise 4 Linux Server.  I have Tomcat
installed
under port 8080.  I have setup iptables to redirect all request for
port
80 to 8080.  I also have Java JDK 1.5.0_10 installed.  The
$CATALINA_HOME
and $JAVA_HOME variables have been set inside /etc/profile.   Tomcat
runs in
normal mode, and everything is working excellent.  The only issue I am
having is getting Tomcat to server HTTPS.  I have followed the tutorial
on
how to use keytool and successfully generated an private key,
certificate,
and then had the certificate signed by Verisign.  I then import the
signed
certificate with keytool.  I have uncommented the section within
server.xml
and pointed it to the location of the keystore, and it's password.  I
even
changed the port from 8443 to 443 and the corresponding forwarding value
for
8080.  By the way Apache HTTP Server is not running on this machine.

My iptables are setup to allow 80, 8080, and 443.  Yet I can't get
Tomcat to
use SSL.  If anyone can please provided me with directions for getting
tomcat to server SSL I would be most thankful.  Tomcat is running
standalone.

 

Im not sure if there is anything special I need to do with JSSE???
Everything I can find states it as a requirement but since I am using
JDK
1.5.0_10, it should already be included if my understanding is correct.
Is
there anything special which needs to be done to use it in my version?

 

Thanks in advance,

Blake Smith

[EMAIL PROTECTED]

 

 


**
Ce message et ses pièces jointes sont confidentiels et établis a l'intention 
exclusive de ses destinataires.
Tout message électronique est susceptible d'altération. SOGITEC décline toute 
responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.
Si vous n'êtes pas destinataire de ce message, merci de le détruire 
immédiatement.
**


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem seting up Tomcat SSL

2007-02-20 Thread PATTUS, Jean-Philippe
You should launch tomcat with this java option -Djavax.net.debug=ssl,
you will have probably more details about the problem


-Message d'origine-
De : Anthony Liu [mailto:[EMAIL PROTECTED]
Envoyé : mardi 20 février 2007 02:01
À : users@tomcat.apache.org
Objet : Problem seting up Tomcat SSL


Hi, people,

It's been 3 years since I used Tomcat the last time.  When I return to it these 
days, I am having a hard time getting the SSL to work.

I've created a keystore using keytool and put the .keystore file under 
C:\Tomcat_6\conf\

I am using JRE 6.

After I read the on-line doc, I put this in the server.xml:


-- Define a non-blocking Java SSL Coyote HTTP/1.1 Connector on port 8443 --

Connector protocol=org.apache.coyote.http11.Http11NioProtocol
   port=8443 minSpareThreads=5 maxSpareThreads=75
   enableLookups=true disableUploadTimeout=true 
   acceptCount=100  maxThreads=200
   scheme=https secure=true SSLEnabled=true
   keystoreFile=C:/Tomcat_6/conf/.keystore keystorePass=changeit
   clientAuth=false sslProtocol=TLS/

Turning the SSLEngine on or off makes no difference.

  !--APR library loader. Documentation at /docs/apr.html --
  Listener className=org.apache.catalina.core.AprLifecycleListener 
SSLEngine=on /

So, what's going on?  What I am missing?

By the way, I am not sure what is APR, and I did not install native libraries 
at Tomcat Installation.

Thanks.

 
-
TV dinner still cooling?
Check out Tonight's Picks on Yahoo! TV.

**
Ce message et ses pièces jointes sont confidentiels et établis a l'intention 
exclusive de ses destinataires.
Tout message électronique est susceptible d'altération. SOGITEC décline toute 
responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.
Si vous n'êtes pas destinataire de ce message, merci de le détruire 
immédiatement.
**


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to install tomcat 4.1.34 as a service ?

2007-02-15 Thread PATTUS, Jean-Philippe
I've had a similar problem.
First Try to do this, you have to indicate the detailed path for  the 
parameters -params stop -out C:/Temp/stdout.log -err C:/Temp/stderr.log.
Second Point : You ahve to check the existence of these paths. If they don't 
exist, create them.

 


-Message d'origine-
De : Sriram Saroop [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 15 février 2007 12:00
À : users@tomcat.apache.org
Objet : How to install tomcat 4.1.34 as a service ?


I tried using the following script to install tomcat 4.1.34 as a service :

set JAVA_OPTS=-Xmx128m -Xss1024k -Xms24m
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%CATALINA_HOME%\bin\servlet.jar;%JAVA_HOME%\lib\tools.jar

-Dcatalina.home=%CATALINA_HOME%

set JAVA_OPTS=%JAVA_OPTS% -Dims.startupMethod=service

%CATALINA_HOME%\bin\tomcat4.exe -install MyService
%JAVA_HOME%\jre\bin\server\jvm.dll %JAVA_OPTS% -Xrs -start
org.apache.catalina.startup.Bootstrap -params start -stop
org.apache.catalina.startup.Bootstrap -params stop -out stdout.log -err 
stderr.log -current %CATALINA_HOME%\bin -path %PATH%


But it fails with the following error:
[2007-02-15 19:00:35] [402  prunsrv.c] [error]
The operation completed successfully.
[2007-02-15 19:00:35] [1246 prunsrv.c] [error]
Load configuration failed


What could be the problem ?
Thanks,
Sriram

**
Ce message et ses pièces jointes sont confidentiels et établis a l'intention 
exclusive de ses destinataires.
Tout message électronique est susceptible d'altération. SOGITEC décline toute 
responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.
Si vous n'êtes pas destinataire de ce message, merci de le détruire 
immédiatement.
**


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error instantiating servlet class

2007-02-12 Thread PATTUS, Jean-Philippe
it seems this class javax/xml/rpc/ServiceException
is not in the classpath.


-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : lundi 12 février 2007 09:39
À : users@tomcat.apache.org
Objet : Error instantiating servlet class



users@tomcat.apache.org

Hi,

I have the following file structure:

1.  C:\tomcat\webapps\StandardCategoryModule\start.jsp
2.  C:\tomcat\webapps\StandardCategoryModule\WEB-INF\web.xml
3.  C:\tomcat\webapps\StandardCategoryModule\WEB-
INF\classes\servlet\CallService

Start.jsp should invoke the CallService servlet , but I am getting 
the error below.

type Exception report
message 
description The server encountered an internal error () that 
prevented it from fulfilling this request.
exception 
javax.servlet.ServletException: Error instantiating servlet class 
servlet.CallService
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.
java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.
java:869)
org.apache.coyote.http11.
Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)
root cause 
java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
java.lang.Class.getConstructor0(Class.java:2671)
java.lang.Class.newInstance0(Class.java:321)
java.lang.Class.newInstance(Class.java:303)
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.
java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.
java:869)
org.apache.coyote.http11.
Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)



My  web.xml file contains the following information:


?xml version=1.0 encoding=UTF-8?
web-app id=WebApp_ID version=2.4 xmlns=http://java.sun.
com/xml/ns/j2ee xmlns:xsi=http://www.w3.org/2001/XMLSchema-
instance xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee/web-
app_2_4.xsd
display-name
StandardCategoryModule/display-name
servlet
description
/description
display-name
CallService/display-name
servlet-nameCallService/servlet-name
servlet-class
servlet.CallService/servlet-class
/servlet

servlet-mapping
servlet-nameCallService/servlet-name
url-pattern/CallService/url-pattern
/servlet-mapping

welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filedefault.html/welcome-file
welcome-filedefault.htm/welcome-file
welcome-filedefault.jsp/welcome-file
welcome-filestart.jsp/welcome-file
/welcome-file-list

/web-app

I would appreciate any help on this.

Thanks

Regards,
Magdalena




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


**
Ce message et ses pi�ces jointes sont confidentiels et �tablis a l'intention 
exclusive de ses destinataires.
Tout message �lectronique est susceptible d'alt�ration. SOGITEC d�cline toute 
responsabilit� au titre de ce message s'il a �t� alt�r�, d�form� ou falsifi�.
Si vous n'�tes pas destinataire de ce message, merci de le d�truire 
imm�diatement.
**


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Re: AW: RE: Error instantiating servlet class

2007-02-12 Thread PATTUS, Jean-Philippe
in your distribution, put the jar here 

C:\tomcat\webapps\StandardCategoryModule\WEB-INF\lib\jaxrpc.jar 

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : lundi 12 février 2007 11:00
À : users@tomcat.apache.org
Objet : AW: Re: AW: RE: Error instantiating servlet class


I have set up the classpath environmantal variable to include the 
path to jaxrpc.jar

Thanks

Magdalena
Ursprüngliche Nachricht
Von: [EMAIL PROTECTED]
Datum: 12.02.2007 10:51
An: Tomcat Users Listusers@tomcat.apache.org
Betreff: Re: AW: RE: Error instantiating servlet class

Where did you put it?
En l'instant précis du 02/12/07 10:27, [EMAIL PROTECTED]
s'exprimait en ces termes:
 Thanks. I have already put in the classpath the path to jaxrpc.
jar. I 
 presume this is the one, but it still doesn't work.

 Regards,
 Magdalena
 Ursprüngliche Nachricht
 Von: [EMAIL PROTECTED]
 Datum: 12.02.2007 10:20
 An: Tomcat Users Listusers@tomcat.apache.org, 
 [EMAIL PROTECTED]
 Betreff: RE: Error instantiating servlet class

 it seems this class javax/xml/rpc/ServiceException
 is not in the classpath.


 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Envoyé : lundi 12 février 2007 09:39
 À : users@tomcat.apache.org
 Objet : Error instantiating servlet class



 users@tomcat.apache.org

 Hi,

 I have the following file structure:

 1.C:\tomcat\webapps\StandardCategoryModule\start.jsp
 2.C:\tomcat\webapps\StandardCategoryModule\WEB-INF\web.xml
 3.C:\tomcat\webapps\StandardCategoryModule\WEB-
 INF\classes\servlet\CallService

 Start.jsp should invoke the CallService servlet , but I am 
 getting 
 the error below.

 type Exception report
 message 
 description The server encountered an internal error () that 
 prevented it from fulfilling this request.
 exception 
 javax.servlet.ServletException: Error instantiating servlet 
class 
 servlet.CallService
   org.apache.catalina.valves.ErrorReportValve.invoke
 (ErrorReportValve.java:105)
   org.apache.catalina.connector.CoyoteAdapter.service
 (CoyoteAdapter.
 java:148)
   org.apache.coyote.http11.Http11Processor.process
(Http11Processor.
 java:869)
   org.apache.coyote.http11.
 Http11BaseProtocol$Http11ConnectionHandler.processConnection
 (Http11BaseProtocol.java:664)
   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
 (PoolTcpEndpoint.java:527)
   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:80)
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.java:684)
   java.lang.Thread.run(Thread.java:595)
 root cause 
 java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
   java.lang.Class.getDeclaredConstructors0(Native Method)
   java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
   java.lang.Class.getConstructor0(Class.java:2671)
   java.lang.Class.newInstance0(Class.java:321)
   java.lang.Class.newInstance(Class.java:303)
   org.apache.catalina.valves.ErrorReportValve.invoke
 (ErrorReportValve.java:105)
   org.apache.catalina.connector.CoyoteAdapter.service
 (CoyoteAdapter.
 java:148)
   org.apache.coyote.http11.Http11Processor.process
(Http11Processor.
 java:869)
   org.apache.coyote.http11.
 Http11BaseProtocol$Http11ConnectionHandler.processConnection
 (Http11BaseProtocol.java:664)
   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
 (PoolTcpEndpoint.java:527)
   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
 (LeaderFollowerWorkerThread.java:80)
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
 (ThreadPool.java:684)
   java.lang.Thread.run(Thread.java:595)



 My  web.xml file contains the following information:


 ?xml version=1.0 encoding=UTF-8?
 web-app id=WebApp_ID version=2.4 xmlns=http://java.sun.
 com/xml/ns/j2ee xmlns:xsi=a href=http://www.w3.
org/2001/XMLSchema- target=_BLANKhttp://www.w3.org/2001/XMLSchema-
/a
 instance xsi:schemaLocation=a href=http://java.sun.
com/xml/ns/j2ee/web- target=_BLANKhttp://java.sun.
com/xml/ns/j2ee/web-/a
 app_2_4.xsd
   display-name
   StandardCategoryModule/display-name
   servlet
   description
   /description
   display-name
   CallService/display-name
   servlet-nameCallService/servlet-name
   servlet-class
   servlet.CallService/servlet-class
   /servlet
   
   servlet-mapping
   servlet-nameCallService/servlet-name
   url-pattern/CallService/url-pattern
   /servlet-mapping
   
   welcome-file-list
   welcome-fileindex.html/welcome-file
   welcome-fileindex.htm/welcome-file
   welcome-fileindex.jsp/welcome-file
   welcome-filedefault.html/welcome-file
   welcome-filedefault.htm/welcome-file
   welcome-filedefault.jsp/welcome-file
  

RE: How to get UTF-8 decoded parameters from request - Chinese Characters

2007-01-30 Thread PATTUS, Jean-Philippe
Hi the list,
finally i have found what is the problem.
I've had a filter in order to set the character encoding 
on the request ( request.setCharacterEncoding(UTF-8);).
But this filter was not called in first in the filter list defined in the
web.xml.
If the parameters have been read before request.setCharacterEncoding(UTF-8); 
the encoding is lost.
What i've done, is to put in first the filter in the web.xml.
Now all works fine.

Thank you for your help (and sorry for my poor english).


-Message d'origine-
De : Christopher Schultz [mailto:[EMAIL PROTECTED]
Envoyé : mardi 23 janvier 2007 17:38
À : Tomcat Users List
Objet : Re: How to get UTF-8 decoded parameters from request - Chinese
Characters


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jean-Philippe,

PATTUS, Jean-Philippe wrote:
 When i fill my form with chinese characters and i submit() the form,
 on the server side when i read the parameter from my request i get
 C:/ç›é€‰ç¨‹åº something like this.

Where do you see this kind of thing?

 On the jsp page when i display the query string
 (document.location.search) i get the correct chinese characters.
 How could i set the encoding parameter to Tomcat ? I have tried to
 add URIEncoding=UTF-8 in my server.xml but it doesn't work.

If the characters re-display correctly in your page after a submit, then
I would say that everything is working correctly.

If you are seeing those funny characters in a log file, then I would
suggest that maybe the tool you are using for viewing your logfile (tail
on UNIX, notepad, whatever) might not understand UTF-8 and/or your
logfile itself is not declared to contain UTF-8 characters.

It might just be a problem with viewing your logs, and it's really
working behind the confusion.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFtjoA9CaO5/Lv0PARAp3eAJ92/JdBxyAPi1+gfx5GtFKGBZh8dwCfcafo
SxS951/JigMt0XnvLBdii3U=
=cbo6
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


**
Ce message et ses pi�ces jointes sont confidentiels et �tablis a l'intention 
exclusive de ses destinataires.
Tout message �lectronique est susceptible d'alt�ration. SOGITEC d�cline toute 
responsabilit� au titre de ce message s'il a �t� alt�r�, d�form� ou falsifi�.
Si vous n'�tes pas destinataire de ce message, merci de le d�truire 
imm�diatement.
**


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: find where webapp installed via java code

2007-01-25 Thread PATTUS, Jean-Philippe

Probably it's not the best way but it can work :

Take for example a property file that you know is in your webapp

ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
InputStream is = classLoader.getResourceAsStream(com/.../yourfile.properties);
Create a file from this inputstream and from yis file try the method getPath() 
or getAbsolutePath()



-Message d'origine-
De : asaf.lahav [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 25 janvier 2007 16:04
À : 'Tomcat Users List'
Objet : RE: find where webapp installed via java code


Hi David and thanks for responding,

1. I am using an exploded WAR
2. I want my webapp to contain an additional jars folder (in addition to the
LIB folder) and I would like to know where the webapp is deployed so I'll
know how to calculate the location of the second jars folder.

Let me know if there is any better way to accomplish this.

Thanks in advance,
Asaf




-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 25, 2007 3:30 PM
To: Tomcat Users List
Subject: Re: find where webapp installed via java code

Please qualify 'system path in which the executing webapp is running'.
do you mean the if your war has been exploded to /tomcat/webapps/myapp/ 
Then you need to get this path? It can be tricky, because, even if it
were possible by some magic including asking class loader where classes
binaries are located, it could end up being /tomcat/webapps/myapp.war in
case of non exploded war. And why do you want to access this folder? You
can already access read-only all it's content using the classloader's
ressource. And requiring write access is a non sense because this
content will be completely discarded at next deployement.
En l'instant précis du 01/25/07 14:11, asaf.lahav s'exprimait en ces
termes:
 Hi all,

 I have a servlet in which I need to find the file system path in which the
 executing webapp is running.

 10x,

 Asaf


   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


**
Ce message et ses pièces jointes sont confidentiels et établis a l'intention 
exclusive de ses destinataires.
Tout message électronique est susceptible d'altération. SOGITEC décline toute 
responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.
Si vous n'êtes pas destinataire de ce message, merci de le détruire 
immédiatement.
**


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to get UTF-8 decoded parameters from request - Chinese Characters

2007-01-23 Thread PATTUS, Jean-Philippe
Hello the list, i'm back with my chinese langage.
In a jsp file i have a form input type=text id=id button 
onclick=submit()/button/form

When i fill my form with chinese characters and i submit() the form,  on the 
server side when i read the parameter from my request i get  C:/ç›é€‰ç¨‹åº 
something like this.
On the jsp page when i display the query string (document.location.search) i 
get the correct chinese characters.
How could i set the encoding parameter to Tomcat ? I have tried to add 
URIEncoding=UTF-8
in my server.xml but it doesn't work.

If you have some ideas ?
   
 


 Jean-Philippe Pattus 
  Sogitec Industries
  Division Documentation et Systèmes
  E-mail : [EMAIL PROTECTED]
  Tél. : 02.99.05.34.25   Fax : 02.99.05.34.05
   Out of office on wednesday's and friday's afternoons  
 
 
 

**
Ce message et ses pièces jointes sont confidentiels et établis a l'intention 
exclusive de ses destinataires.
Tout message électronique est susceptible d'altération. SOGITEC décline toute 
responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.
Si vous n'êtes pas destinataire de ce message, merci de le détruire 
immédiatement.
**



RE: How to display chinese chars in JSP / encoding UTF-8 without @page encoding tag

2007-01-15 Thread PATTUS, Jean-Philippe
Thank you for your answers.
After some tests, i have upgraded my Tomcat server from 4.x to 5.5,
and i have done the same thing with my web application from servlet 2.3
to servlet 2.4. Now i can use the xml element jsp-config and 
jsp-property-group
url-pattern*.jsp/url-pattern
page-encodingUTF-8/page-encoding
/jsp-property-group
It works fine, and i don't have to define in each jsp the encoding.
For the question of which UTF has to be used : 8 or 16, i 'm using
UTF-8 because the size of the page. With UTF-16, the jsp pages are twice
heavier than with UTF-8.

JP

-Message d'origine-
De : John McPeek [mailto:[EMAIL PROTECTED]
Envoyé : dimanche 14 janvier 2007 20:46
À : Tomcat Users List
Objet : Re: How to display chinese chars in JSP / encoding UTF-8 without
@page encoding tag


Why are you using UTF8 in stead on UTF16. With UTF8 you have to escape 
all the characters, right?
I was on a project for a Japanese site once and we used UTF16. It was a 
lot easier to work with.
Eclipse will show it to you just like normal text(Chinese). All you have 
to do is set the encoding to be
UTF16 in the files properties. You still need the %@ page 
contentType=text/html; charset=UTF-16%
line, but it is a lot easier to read and maintain.

John

From: Pulkit Singhal [mailto:[EMAIL PROTECTED] 
Subject: Re: How to display chinese chars in JSP / encoding 
UTF-8 without @page encoding tag

I think you can set the -DFileEncoding flag or something
to be UTF-8 in the java options of the script you use to
start tomcat.



It's -Dfile.encoding=UTF-8 (or UTF8; either is acceptable).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



**
Ce message et ses pièces jointes sont confidentiels et établis a l'intention 
exclusive de ses destinataires.
Tout message électronique est susceptible d'altération. SOGITEC décline toute 
responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.
Si vous n'êtes pas destinataire de ce message, merci de le détruire 
immédiatement.
**


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]