Something we should include on the 1.1 TODO list is to ensure that you can
put struts.jar (and the appropriate commons-*.jar files it depends on)
into a container-provided shared class loader (such as the "lib" directory
in Tomcat 4.0.x) instead of requiring that they be included in the
/WEB-INF/lib directory.  This will provide more flexibility for those
deploying multiple Struts-based apps on the same container.

Principally, this means that whenever the Struts code does a
Class.forName() on an application-provided class, it should be modified to
look in the webapp class loader first:

  ClassLoader webappClassLoader =
    Thread.currentThread().getContextClassLoader();

which is guaranteed to work correctly on Servlet 2.3 containers (required
in the spec), and in practice seems to work correctly on all containers
that matter.  (If we're creating objects with Digester, this probably
means using the factory create rule rather than the object create rule so
that the object creation factory can do the right thing.)

I will put this on my list unless someone else wants to take a crack at
it.

Craig



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to