I believe I didn't follow the original issue, then.
I thought that struts2 was swallowing the requests for the css files because they fit the pattern specified by the filter. I can't see how making them absolute urls would be any different for the filter, because when the request is made by the browser, it all looks the same to the filter. meeboo wrote: > > Unfortunately I'm running Tomcat. I did come up with a pretty clean > solution though, what I do is that I link to the CSS /JS/Image files via > an absolute URL, so instead of "public/css/design.css" I use > "http://mydomain.com/public/css/design.css" - good enough for me at the > moment. > > > cilquirm wrote: >> >> I don't believe this can be cleanly handled with just the web 2.4 spec >> and struts2. >> >> Some container, like Resin, allow for url-patterns to be regexes, which >> would help in this scenario. >> >> >> >> meeboo wrote: >>> >>> The problem is that I have a lot of URL:s which look like >>> /user/username, movie/movieTitle or account/create - and I don't want to >>> forward or redirect for each URL since this will slow down my >>> application. Is there a way to exclude .css extensions maybe? >>> >>> >>> joey-30 wrote: >>>> >>>> keep struts.action.extension default.and create a filter to make sure >>>> it's before the struts filter.like this: >>>> <filter-mapping> >>>> <filter-name>yourfilter</filter-name> >>>> <url-pattern>movie/*</url-pattern> >>>> </filter-mapping> >>>> <filter-mapping> >>>> <filter-name>struts2</filter-name> >>>> <url-pattern>/*</url-pattern> >>>> </filter-mapping> >>>> u can foward or redirect to the url movie.action?movieTitle=* or >>>> something >>>> else in your >>>> filter. >>>> >>>> regards >>>> joey >>>> On 4/11/07, meeboo <[EMAIL PROTECTED]> wrote: >>>>> >>>>> >>>>> No takers on this? >>>>> >>>>> >>>>> meeboo wrote: >>>>> > >>>>> > Hey all >>>>> > >>>>> > I have a mapping pattern which looks like this >>>>> > >>>>> > <action name="movie/*" >>>>> class="com.bubbleclip.web.struts.action.PlayMovie >>>>> "> >>>>> > <param name="movieTitle">{1}</param> >>>>> > <result>/movie.jsp</result> >>>>> > </action> >>>>> > >>>>> > The wildcard is for backwards compability since our original >>>>> JSP/Servlet >>>>> > web-layer mapped movie titles like >>>>> > http:localhost:8080/movie/movieTitle >>>>> > >>>>> > This works fine if I set struts.action.extension to "", this way I >>>>> > preserve compatibility since the movie title is the actual action >>>>> name. >>>>> > The problem is that S2 will also interpret everything else as being >>>>> > actions - even CSS names making the pages not render correctly. Is >>>>> there >>>>> a >>>>> > way around this? >>>>> > >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://www.nabble.com/struts.action.extension-question-tf3548145.html#a9934814 >>>>> Sent from the Struts - User mailing list archive at Nabble.com. >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/struts.action.extension-question-tf3548145.html#a9946608 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]