beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Feit <>
Subject Re: Struts 1.1 and Validator support
Date Tue, 01 Nov 2005 22:45:45 GMT
FYI, this is fixed (option #2) with revision 330142.

Rich Feit wrote:

>Due to an issue we discovered a little while ago, it's not possible to
>generate files into WEB-INF during Page Flow compilation like we used
>to; instead, we generate to WEB-INF/classes.  This works great for
>Struts, where we can force it to read files from the classloader instead
>of from the ServletContext.  Unfortunately, the Struts 1.1 Validator
>plugin can *only* read files from the ServletContext, not from
>classloader.  So we're currently getting it to look into WEB-INF/classes
>through the ServletContext, which is not only strange, but it breaks the
>assumption that resources in WEB-INF/classes can be moved anywhere on
>classpath.  I think this leaves us with three options:
>    1) Remove support for declarative validation under Struts 1.1.
>    2) Support declarative validation under Struts 1.1, but only with a
>workaround (simple file-copy as part of the build).
>    3) Do nothing; continue to allow Struts to read Validator config
>files from the path "/WEB-INF/classes/_pageflow/pageflow-validation-*.xml.
>I lean towards #2.  Any other thoughts on this, though?

View raw message