Hmm Yes... What is the problem then? I don't think I understand it now either.
Al
>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 abso
Are you fronting with Apache? What we normally do if we are fronting with
apache is serve all the static content from there (of course) so it never gets
to the app server to cause this kind of confusion there. A simple JkUnmount
/movie/*.css workerName will do it for Apache-Tomcat (or Apache-jbo
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
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 wrot
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/movieTit
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.ex
keep struts.action.extension default.and create a filter to make sure
it's before the struts filter.like this:
yourfilter
movie/*
struts2
/*
u can foward or redirect to the url movie.action?movieTitle=* or something
else in your
filter.
regards
joey
On
No takers on this?
meeboo wrote:
>
> Hey all
>
> I have a mapping pattern which looks like this
>
>
> {1}
> /movie.jsp
>
>
> The wildcard is for backwards compability since our original JSP/Servlet
> web-layer mapped movie titles like
> http:localhost:8080/movie/mo
8 matches
Mail list logo