一、JSP-->Servlet
1、表单传值
JSP :<input type="text" name="A" value="B">
Servlet: String str = request.getParameter("A");
2、url传值
JSP: <form action=JSPServlet?name="zhoujie">
Servlet: String str = request.getParameter("name");
二、Servlet-->JSP
Servlet: request.setAttribute("Key",values)
JSP: (String)request.getAttribute("Key")