Hi, I didn’t wanted to refactorize all my ‘xxx’ style links to ‘xxx.action’ style links.
So, what I’ve finally done is to create a new empty web NO-Struts2 application, move that public-folder to it, and create a WEB-INF/web.xml file with ONLY this content, with listing parameter to true to allow directory listing: <servlet> <servlet-name>default2</servlet-name> <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>listings</param-name> <param-value>true</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>default2</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> Thanks Mauricio! 2011/5/20 Maurizio Cucchiara <maurizio.cucchi...@gmail.com> > This happens because the struts filter(s) intercepts your request. > You could change your web.xml configuration such that the struts > filter(s) ignores this kind of request: > Take a look at your filter mapping and change the url-pattern in something > like > <url-pattern>/*.action</url-pattern> > > On 20 May 2011 10:10, webmeiker <i...@webmeiker.com> wrote: > > Hi everybody, > > > > > > > > I want to publish some resources (folders and files) under a folder > inside > > the WebContent folder of my Struts2 application and allow free directory > > exploration of that folder contents. > > > > > > > > WebContent/public-folder/*.* > > > > > > > > Does somebody know how to achieve this? > > > > > > > > All my attempts fail with the classical ‘There is no Action mapped for > > action name public-folder’ > > > > > > > > I am using Sitemesh decorator, and have defined next exclude pattern: > > > > > > > > <excludes> > > > > <pattern>/*public-folder*</pattern> > > > > </excludes> > > > > > > > > It seems that I’m unable to escape away from Struts2 control. > > > > Thanks… > > > > -- > > > > > > -- > Maurizio Cucchiara > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > --