Config layout

Cantor, Scott cantor.2 at osu.edu
Sun Nov 3 16:39:30 EST 2013


On 11/2/13, 11:47 AM, "Marvin Addison" <marvin.addison at gmail.com> wrote:
>
>One consideration here is whether views will be reachable inside JAR
>packaging by the servlet request dispatcher. I had a use case for that
>in the CAS protocol work and the packaging requirements are strict.

The views/ directory I was referring to were Velocity-only, since JSP
can't live outside the classpath.


>Views must be nested under /META-INF/resources, so if you want views
>to be generally accessible you're looking at a path of
>/META-INF/resources/views. And if you want views at the same depth as
>other configuration, that would drag everything under
>/META-INF/resources. I tend to like configuration under META-INF,
>which is arguably a growing convention (JPA, CDI specs come to mind),
>but I can admit it's just more path elements to traverse without much
>value other than possibly convention.

What purpose does it serve to lock view templates inside of jars?

-- Scott




More information about the dev mailing list