On Mon, Jan 12, 2015 at 6:55 AM, Srikanth Hugar <srikanth.hu...@gmail.com> wrote:
> I am trying to configure static files with default servlet in tomcat > 8.0.9 but could not succeed. > > My directory structure in deployed webapp is: > > - WEB-INF > - static > -css > -images > -js > - META-INF > > and* web.xml* configuration using default servlet is : > > <!-- static URLs --> > <servlet-mapping> > <servlet-name>default</servlet-name> > <url-pattern>/res/*</url-pattern> > </servlet-mapping> The default servlet will handle your static resources out of the box. Get rid of the above (/res/*) mapping and access as e.g. /myapp/static/js/imports/jquerymin.js -- Hassan Schroeder ------------------------ hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org