I am writing a new web application in websphere 7. My webcontent has jsps, css and javasript files. I do not want to allow the user to directly access the content here like when they type
I would appreciate if anyone can throw some light on this,
I am a little new to web apps,
This request would be directed ("forwarded" isn't the right word, that refers to something else) to that one servlet. If the request is for a URL ending in ".css" or ".js", or ".html", or whatever else, just forward the request to that resource. Otherwise do your authentication and so on. At least that's what I did; this question isn't specific to Websphere, it applies to anything using the servlet spec, so I'm going to move the question to the Servlets forum. It might get a better answer there.
(By the way this sort of thing is normally done in a filter these days, rather than a front controller servlet.)