web.xml & css
843836Jul 12 2004 — edited Jul 12 2004Hello,
i would like to make a web.xml config that forwards all requests to 1 controller except for the css witch should be accessed directly .. is this possible ?
Also if possible a user should not be able to directly access .jsp files.
Right now i have:
<web-app>
<servlet>
<servlet-name>Controller</servlet-name>
<display-name>Controller</display-name>
<servlet-class>be.psb.stockdb.web.Controller</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Controller</servlet-name>
<url-pattern>/servlet/be.psb.stockdb.web.Controller</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Controller</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
...
But like this it is not possible to access the css. I hope there is a better solution than to to write a servlet that just writes the css to the client ..
Any help would be appreciated,
tnx