I need to do the following scheme: I want all the URLs to be handled by one servlet, e.g /one or /one/two or /one/two/three.do to be handled by only one servlet, say MainServlet. And I want to deny access to JSPs but use them only as forwards from my servlet. E.g. when a user types http://myserver.com/some.jsp, he/she get 404 not found, or forbidden, whatever. But he/she must not straight access any JSP.
I place all of my JSPs -- except those that must be able to be accessed directly, usually very few -- in a folder structure rooted at WEB-INF/pages. [ January 26, 2006: Message edited by: Bear Bibeault ]
But still, what <url-mapping> should I specify so that all the requests to my server are handled only by MainServlet?
Actually you probably do not want all requests to be routed to the front controller unless the front controller servlet is going to handle all requests including image file, script files and style sheets. [ January 26, 2006: Message edited by: Bear Bibeault ]