rainerh  committed 817ff5a

allow you to use a bean name for converters, just like you can with validators, action classes, interceptors
Issue number: XW-333
Obtained from:
Submitted by: Cameron Braid
Reviewed by: Rainer Hermanns


  • Participants
  • Parent commits 83ccc70

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork/util/

     TypeConverter createTypeConverter(String className) throws Exception {
-        Class conversionClass = Thread.currentThread().getContextClassLoader().loadClass(className);
         // type converters are used across users
-        return (TypeConverter) ObjectFactory.getObjectFactory().buildBean(conversionClass, null);
+        return (TypeConverter) ObjectFactory.getObjectFactory().buildBean(className, null);
     public void loadConversionProperties(String propsName) throws IOException {