首页
在Java Web中,Servlet程序需要在()文件中配置。
精华吧
→
答案
→
慕课
→
未分类
在Java Web中,Servlet程序需要在()文件中配置。
A.JSP
B.web.xml
C.struts.xml
D.servlet.xml
正确答案:web.xml
Tag:
web开发技术基础
文件
程序
时间:2021-12-28 12:15:35
上一篇:
page对象指向当前JSP程序本身
下一篇:
在部署带有Servlet的Java Web程序时,()不是必需的。
相关答案
1.
config对象是在一个JSP程序初始化时JSP引擎向它传递消息用的。
2.
application对应的类是javax.servlet.ServletContext
3.
对于一个Web容器而言,所有的用户共同使用一个session对象。
4.
获得当前session在服务器端的ID的方法是getId()
5.
对于每一个session,服务器端都有一个sessionId来标识它。
6.
将session中的内容全部移除的方法是invalidate()
7.
session对应的类是javax.servlet.HttpSession
8.
在服务器启动后就会自动创建application对象,这个对象会一直保存,直到服务器关闭为止。该说法()。
9.
()对象提供了对JSP页面中所有对象及命名空间的访问。
10.
excepiton对象对应的类是()。
热门答案
1.
下列关于application的说法正确的是()。
2.
下列关于sessionId的说法错误的是()。
3.
通过()方法可以将内容保存在session中。
4.
下列关于session的说法错误的是()。
5.
将Cookie定稿客户端的response对象的方法为response.sendCookie(Cookie c)。
6.
在一般情况下,Cookie中的值是以key-value的形式进行表达的。
7.
Cookie是一个小的文本数据,由客户端浏览器产生,发送给服务器端。
8.
response的getError方法用于向客户端发送HTTP状态码的出错信息。
9.
用response进行重定向的方法是response.sendRedirect(目标页面路径)。
10.
负责得到客户端请求的内置对象是response,负责身客户端发出响应的内置对象是request。