There is a set of handlers called the "Unknown Handlers" that are used in the Conventions plugin. You might check that out...
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/UnknownHandler.java?view=markup You can implement this interface and plugin your class. I'm not sure if this is what you're looking for... -Wes On Thu, Jul 29, 2010 at 3:28 PM, <java....@spamgourmet.com> wrote: > It's possible that this is not a Struts question, but it's succinct: > > I'd like to be able to code pages that ask for a resource that may or may not > be present in one directory. If the resource is NOT present in the requested > location, I'd like to automatically look for it in a different location. > FreeMarker with Struts makes this easy with template "acquisition" -- where > FM loads a template from any of the parent directories if it's not found in > the requested directory (docs here: > http://freemarker.sourceforge.net/docs/ref_directive_include.html#ref_directive_include_acquisition). > > How can I achieve similar fall-back behavior for things like images (and > ultimately .css and .js too)? > > Are Interceptors useful here? > What about a custom 404 handler? (can this map to an action that returns an > image result?) > Perhaps a regular "normal" J2EE Filter or Servlet mapped to ".png"? > > I look forward to hearing any ideas you might have. > > -rgm > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org