Re: Interceptor question

2011-12-09 Thread Brian McCullough
On Fri, Dec 09, 2011 at 03:37:10PM -0500, Dave Newton wrote: > That was a long question :( Yes, I wanted to make sure that I had covered all of what I had already done. > Yes; the default-intereptor-ref element is a per-package configuration, as > described in the pacakge configuration docs [1].

Multiple tiles

2011-12-09 Thread Cord Awtry
All, Working on an older struts1 implementation and trying to determine how to do a dynamic mapping. Essentially, there's 2 versions of a site depending upon certain attributes of the logged in user. I'd like to be able to have 2 config and 2 tiles files, with the same actions defined but differ

Re: Interceptor question

2011-12-09 Thread Dave Newton
That was a long question :( On Fri, Dec 9, 2011 at 2:48 PM, Brian McCullough wrote: > I would like to be able to define a particular Interceptor Stack as being > the Default for a particular packageName, and applicable to the whole > Package and its Actions, instead of having to code interceptor-

Interceptor question

2011-12-09 Thread Brian McCullough
Folks, I don't seem to be able to ask this question in a way that lets the search engines give me a useful answer, so I am coming here. I am working on adding functionality to an application that I inherited. I have struts.xml as well as several struts-packageName.xml files in WEB-INF/classes

Re: Dynamically setting the template directory in an Action

2011-12-09 Thread Josep GarcĂ­a
You can try by overriding the default FreemarkerManager, by defining your own in struts.xml: and override the method: protected TemplateLoader getTemplateLoader(ServletContext servletContext) Let us know if it works, as I might go for the same direction! Cheers, Josep 2011/12/8 G