J2EE中,哪个类的哪个方法用于创建对话?()
第1题:
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)
第2题:
Servlet可以通过以下哪个接口实现请求转发机制?()
第3题:
在J2EE中,对于在Servlet如何获得会话,描述正确的是()。
第4题:
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?()
第5题:
J2EE中,HttpServletRequest类的()方法用返回与当前请求相关联的会话,如果没有,则返回null。
第6题:
在Java EE中,如果req是HttpServletRequest的实例,要通过req获取已经存在的HttpSession对象,如果不存在就创建一个HttpSession对象,下面选项中()可以实现。
第7题:
下列哪个类是抽象类()。
第8题:
J2EE中()类()方法用于返回应用程序的上下文路径。
第9题:
HttpSession session=request.getSession(false)与HttpSession session = request.getSession(true)的区别()。
第10题:
调用HttpServletRequest对象的getAttribute()方法
调用ServletContext对象的getAttribute()方法
调用HttpServletRequest对象的getParameter()方法
第11题:
HttpSession通过HttpServletRequest对象获得
HttpSession可以用来保存数据,并实现数据的传递
HttpSession被创建后,将始终存在,直到服务停止
调用HttpSession的invalidate()方法,可以删除创建的HttpSession对象及数据
第12题:
HttpServletRequest;getSession
HttpServletRequest;NewSession
HttpSession;newInstance
HttpSession;getSession
第13题:
在Java Web开发中,要在服务器端查询cookie,要用到HttpServletRequest的哪个方法?()
第14题:
下面哪个方法不是HttpServlet类:()
第15题:
Given an HttpServletRequest request and an HttpServletResponse response: 41.HttpSession session = null; 42.// insert code here 43.if(session == null) { 44.// do something if session does not exist 45.} else { 46.// do something if session exists47. } To implement the design intent,which statement must be inserted at line 42?()
第16题:
J2EE中,()类的()方法用于创建对话。
第17题:
HttpServletRequest接口的()方法用于创建会话。
第18题:
下列选项中关于HttpSession描述错误的是()。
第19题:
在Servlet里,能正确获取session的语句是()。
第20题:
从HTTP请求中,获得请求参数,应该调用哪个方法?()
第21题:
HttpServletRequest类的getSession方法有两个:带参数的getSession方法和不带参数的getSession方法
在Servlet中,可以使用HttpSession session = new HttpSession()创建session对象
如果HttpServletRequest类的getSession方法的参数为false,表示如果没有与当前的请求相联系的会话对象时,该方法返回null
如果HttpServletRequest类的getSession方法的参数为true,表示如果没有与当前的请求相联系的会话对象时,该方法返回null
第22题:
HttpServletRequest、getSession
HttpServletResponse、newSession
HtttpSession、newInstance
HttpSession、getSession
第23题:
HttpSession session = request.getSession();
HttpSession session = request.getSession(id);
HttpSession session = request.getSession(true);
HttpSession session = request.getSession(false);
HttpSession session = request.getSession(jsessionid);