>>> David Bullock <[EMAIL PROTECTED]> 21-Jan-00 5:51:53 AM >>> >I need to map a servlet to '/' that performs conditional processing >and then RequestDispatcher.forward() ] to dispatch the user to >their requested URI. >But the servlet will be called recursively, since anything I dispatch to will >invoke the servlet at '/' again....and call-stacks overflow or memory runs >aground. No it won't. The API specifies that the path matching should return paths which match most significantly. If you have: servlet1 mapped to / servlet2 mapped to /foo servlet3 mapped to /foo/bar Now look at what the requests would do: request / invokes servlet1 request /foo invokes servlet2 request /foo/bar invokes servlet3 request /foo/bar/one invokes servlet3 One way to do what you want might be to map the initial servlet to a file path (eg: .html) and then strip that off when you RD.forward(). Nic Ferrier ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html