You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by Rich Feit <ri...@gmail.com> on 2005/11/01 23:45:45 UTC

Re: Struts 1.1 and Validator support

FYI, this is fixed (option #2) with revision 330142.
Rich

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?
>
>Rich
>
>  
>