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

Reply via email to