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#a9936131 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]