Servlet:
public class StudentLoginSvlt extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res)
{
res.sendRedirect("jsp/DisplayCourse.jsp?username=wgy&ww=eee");
}
}
DisplayCourse.jsp:
request.getQueryString() 得到值为:username=wgy&ww=eee;
request.getParameter("username”)为空
------最佳解决方案--------------------------------------------------------
都重定向了上哪取值。