下列是page指令中的一些属性,其中,用于指明是否内置Session对象的属性是()
A. language
B. extends
C. import
D. session
查看答案
下面选项中,能够获取客户端ip地址的选项是()
A. <% HttpServletRequest request=pageContext.getRequest(); String ip = request.getRemoteAddr(); out.println("本机的IP地址为:"+ip);%>
B. <% HttpServletRequest request=(HttpServletRequest)pageContext.getRequest(); String ip = request.getRemoteAddr(); out.println("本机的IP地址为:"+ip);%>
C. <% String ip = request.getRemoteAddr(); out.println("本机的IP地址为:"+ip);%>
D. <% HttpServletRequest request=pageContext.getRequest(); String ip = request.getLocalAddr(); out.println("本机的IP地址为:"+ip);%>
下列选项中,属于JSP指令的有()
A. page指令
B. include指令
C. taglib指令
D. forward指令
阅读下面代码:a.jsp:<%______.setAttribute("itcast","youjun");%>b.jsp:<%= ______.getAttribute("itcast ") %>若想在访问b.jsp时取到正确值,横线处可以填入的隐式对象有()
A. session、 session
B. application、 application
C. request、 request
D. application、 session
以下通过JSP的include指令来引入这些抽取出的JSP页面方式正确的是()
A. <%@include file="head.jsp"%>......省略
B. <% @include file="head.jsp"%>......省略
C. <%@ include file="head.jsp"%>......省略
D. < %@include file="head.jsp"% >......省略