我将我的请求从登录 servlet 转发到位于教员文件夹(子文件夹)中的 FacultyHomePage.jsp....页面已显示,但 url 仍然是 /LoginServlet。为什么网址没有变化??
HttpSession sc= request.getSession();
if(usertype==0)
{
sc.setAttribute("type", usertype);
sc.setAttribute("id",id );
rd=request.getRequestDispatcher("/faculty/FacultyHomePage.jsp");
rd.forward(request, response);
}