题目内容

13.在web.xml中,有如下代码:

A. t;session - config>
B. t;session - timeout>30
C. t;/session - config>
D. 代码定义了默认的会话超时时长,时长为30( )
E. 毫秒
F. 小时
G. 分钟
H. 秒

查看答案
更多问题

14.给顶一个JSP程序源代码,如下:

A. t;jsp:include page="two.jsp" flush="true">
B. t;jsp:param name="location" value="bejing"/>
C. t;/jsp:include>
D. wo.jsp中使用( )代码片段可以输出参数location的值。
E.
F. <%=request.getParameter() %>
G. <%=request.getAttribute() %>
H.

15.下列可以正确获取当前Web程序物理路径的方法为( )

A. response.getRealPath(“/”)
B. request.getFile(“/”)
C. response.getFile(“/”)
D. request.getRealPath(“/”)

16.request对象的( )方法可以获取页面请求中一个表单组件对应多个值时的用户的请求数据。

A. String[] getParameterValues(String name)
B. String[] getParameter(String name)
C. String getParameter(String name)
D. String getParameterValuses(String name)

17.request对象的( )方法可以获取页面请求中一个表单组件对应多个值时的用户的请求数据。

A. String getParameterValuses(String name)
B. String[] getParameter(String name)
C. String getParameter(String name)
D. String[] getParameterValues(String name)

答案查题题库