0 Replies Latest reply on Apr 10, 2002 11:32 AM by Colin Yates

    How to Map servlet to root without loop?

    Colin Yates Newbie

      Hi,

      I want to create a servlet which checks that the user is logged on. If they are, then they are forwarded to the extraPathInfo. So the root is mapped to "/*".

      The problem is that the forward calls the servlet again and so on and so on to inifinity (and beyond :))

      How can I do this? How do I map a servlet to root and then have it display the file specified in the pathInfo().

      I have also tried this with a specific directory, i.e. secure. The idea being that http://xyz/myapp/secure/page1.jsp would load the servlet mapped to /secure and then forward to /secure/page1.jsp.

      How do I do this? Has anyone got any code they could show me?

      Cheers