题目内容

以下哪种格式是正确的URL( )。

A. http://localhost:8080/news/index.jsp
B. http://localhost/8080/news/index.jsp
C. http://localhost/8080:news/index.jsp
D. http:localhost://8080/news/index.jsp

查看答案
更多问题

在JSP中,以下( )方法可以正确获取复选框的值。

A. request.getParameterValue()
B. response.setParameterValues()
C. request.getParameterValues()
D. request.getParameter()

以下代码中( )可以正确设置客户端请求编码为UTF-8。

A. request.setCharacterEncoding("UTF-8")
B. request.setCharset("UTF-8")
C. request.setContentType("UTF-8")
D. request.setEncoding("UTF-8")

在JSP中,以下( )技术最适合实现购物车的存储。

A. page
B. request
C. session
D. application

通过response的( )方法可以设置响应所采用的字符编码类型。

A. setCharacterEncoding()
B. setCharset()
C. setEncoding()
D. setContentType()

答案查题题库