HttpSession session = request.getSession();
HttpSession session = request.getSession(id);
HttpSession session = request.getSession(true);
HttpSession session = request.getSession(false);
HttpSession session = request.getSession(jsessionid);
第1题:
A、put off
B、pass on
C、help along
D、point out
第2题:
Which is a benefit of precompiling a JSP page?()
第3题:
A、regarding
B、regards
C、regarded
第4题:
JSP从HTML表单中获得用户输入的正确语句为()。
第5题:
Given a header in an HTTP request:X-Retries:4 Which two retrieve the value of the header from a given HttpServletRequest request?()
第6题:
Servlet的基本架构
public class ServletName extends HttpServlet {
public void doPost(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
}
public void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
}
}
1、用String的方法将数据类型转换为String。
1、String.valueOf(1.23)
第7题:
Given an HttpServletRequest request: 22.String id = request.getParameter("jsessionid"); 23.// insert code here 24.String name = (String) session.getAttribute("name"); Which three can be placed at line 23 to retrieve anexisting HttpSession object?()
第8题:
The use of the passive voice cannot soften a request.()
第9题:
下面关于HttpServletRequest接口描述错误的是()
第10题:
下列哪种方式可以在session中保存一个名为"name",值为"newer"的属性()