On Mon, Jan 12, 2015 at 6:55 AM, Srikanth Hugar
<[email protected]> 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 ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to