First, the following is the physical path of my web application.
│ │ └webapplication
│ │ └AccountServlet.class
│ │ └LoginServlet.class
I try to access the URL "http://127.0.0.1:8080/BankAccount/login.html",which the login.html post a request to the servlet LoginServlet which is in the package webapplication.Then the LoginServlet will redirect to the AccountServlet if the login is ok.I use the req.getRequestDispatcher("/AccountServlet").forward(req, res) to get the user's account info.However, the question arised here.In the book, it use the req.getRequestDispatcher("/servlet/AccountServlet").forward(req, res) and also will sucess.It is strange about the /servlet/... What does the path means?I don't have such package or directory.
I tried some other web application then and I found that the path "/servlet/..." all work well.Can anyone help me?
[ September 12, 2002: Message edited by: simeon shi ]