tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Contexts and Wrappers in Catalina
Date Wed, 01 Mar 2006 15:59:15 GMT
Hi the list,

First sorry for my last post... It was not the right mailing list. At the 
end I solved my problem using an Arraylist and making this change :

Index: connectors/util/java/org/apache/tomcat/util/
--- connectors/util/java/org/apache/tomcat/util/ 
(revision 382065)
+++ connectors/util/java/org/apache/tomcat/util/ 
(working copy)
@@ -945,7 +945,8 @@

     public static Object convert(String object, Class paramType) {
         Object result = null;
-        if ("java.lang.String".equals(paramType.getName())) {
+        if ("java.lang.String".equals(paramType.getName())
+            || "java.lang.Object".equals(paramType.getName())) {
             result = object;
         } else if ("java.lang.Integer".equals(paramType.getName())
                 || "int".equals(paramType.getName())) {

It's quite useful. It permit to use the function add from a collection of 
objects on a text. Without this change, the digester can't convert the 
String object to an Object and that's why it can't call the add function. 
I'm not relly sure that I'm sending this patch on the right mailing 
list... Anyway I got an other doubt.

I don't understand why the Loader class (representing the classloader) is 
on the Wrapper class (representing a servlet) and not on the Context class 
(representing the web application) in Catalina. Can't it be different 
between two servlets for the same web application ?


Fabien Carrion

La información transmitida mediante el presente correo es para la(s)
persona(s) cuya dirección aparece al calce, la información contenida es
estrictamente confidencial y para lectura exclusiva de la (s) persona
(s) mencionada(s) por lo que esta prohida la reproducción, distribución
o copia del presente. Si usted ha recibido este correo por error, favor
de contactar con el remitente y eliminarlo de todas las charolas de su
correo. The information transmitted by this e-mail is intended only for
the person or entity to which it is addressed and may contain
confidential and/or privileged material. If the reader of this message
is not the intended recipient, you are hereby notified that you have
received this message by error and that any review, dissemination,
distribution or copying of this message including any attachments is
strictly prohibited. If you received this by error, please contact the
sender and delete the information from any computer.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message