I'm not actually using dojo in this project, so I guess I could just drop this, (each struts theme="ajax" (and therefore dojo) tool I've tried has been pretty broken in some manner, so I've switched to alternatives), but I'd like to be able to try other dojo tools as I continue development...

At this point it seems like everything is working except the staticFilter. If I have some random file like /ABC.html (or
/struts/dojo/src/widget/templates/AccordionPane.html)
in my webapp, and staticFilter is set up to serve files that match that pattern, and staticFilter tries to do so, how should that get done? It seems like it's just following along the chain (struts is what's failing, saying actions for ABC (or AccordionPane) are not configured), so I think I have it misconfigured... Shouldn't it somehow short-circuit and serve the file itself?

Ah--in StaticFilter.java it says:
  requests are allowed to pass straight through to be processed by the
  servlet container as per normal.

That clearly isn't happening. It's being passed straight through and processed by the next filter (struts) and failing. So it seems that in order to use the static filter, the struts filter must not watch for FORWARDs. Contradictorily in order to use UrlRewrite the struts filter must watch for FORWARDs. So we can either use StaticFilter or UrlRewriteFilter, but not both.

Which means this problem is interesting even without dojo in the mix.

The initial author (Michael Horwitz) seems to have written this assuming that the framework will eventually serve based on a servlet rather than a filter:
http://www.nabble.com/Re%3A-Changing-default-extension-from-*.html-to-*.---p8745725s2369.html

Given that struts2 doesn't match that, it seems that we'd need a different staticFilter implementation in order to be able to use both it and urlRewrite. :-(

Michael, are you reading this? I know you use Spring MVC and not Struts, but do you have any pertinent suggestions?

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to