John Robert wrote:If I put a mapping in web.XML saying forward any request to my one servlet, what would happen when a request comes for JavaScript or Css file?
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.)