Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

web.xml & css

843836Jul 12 2004 — edited Jul 12 2004
Hello,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2004
Added on Jul 12 2004
2 comments
566 views