我正在将我的请求从Login servlet转发到位于faculty文件夹(它是子文件夹)中的FacultyHomePage.jsp ....显示页面,但url仍为/ LoginServlet。 为什么不更改网址?即使在servlet中请求调度之后,URL也不会更改
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);
}
因为你做了** **着我 – 2013-03-20 08:04:24
是新来这个concept.Please你能解释一下如何改变网址? – Vini 2013-03-20 08:07:31
检查我的答案。 – 2013-03-20 08:10:42