单项选择题
给定一个Servlet 的doGet方法中的代码片段,如下:request.setAttribute(“name”,”zhang”);response.sendRedirect(“http://localhost:8080/servlet/MyServlt”);那么在MyServlet 中可以使用()方法把属性name的值取出来。
A.String str=request.getAttribute(“name”);B.String str=(String)request.getAttribute(“name”);C.Object str=request.getAttribute(“name”);D.无法取出来
单项选择题 在JavaScript中,制作级联菜单功能时调用的是下拉列表框的()事件。
单项选择题 Jsp 中HttpServletRequest对象的()方法用于创建一个Session对象。
问答题 在基于MVC模式的Java Web应用程序中,Servlet担负什么角色?它的一般功能是什么?