Re: Transparently handling a missing image

2010-09-17 Thread java . rgm
In case it helps anyone else (or in case anyone wants to tell me how much of a bad idea this is), to solve this problem I ended up writing my own SkinFilter class (implements Filter) which looks for a skin parameter in the HttpSession. If it's there, then the servlet request is wrapped in a

Transparently handling a missing image

2010-07-29 Thread java . rgm
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

Re: Transparently handling a missing image

2010-07-29 Thread Wes Wannemacher
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