在Servlet里,能正确获取session的语句是( )。
a)HttpSession session = request.getSession(true);
b)HttpSession session = request.getHttpSession(true);
c)HttpSession session = response.getSession(true);
d)HttpSession session = response. getHttpSession (true);
下列可以正确获取当前Web程序物理路径的方法为_______。
A. request.getRealPath(“/”) B. request.getFile(“/”)
C. response.getRealPath(“/”) D. response.getFile(“/”)
使用JavaScript语言中Document的_ __方法可以在页面上输出字符。
A. document.write() B.document.print()
C. document.out() D.document.flush()
在JSP中,要定义一个方法,需要用到以下( )元素。
a) <%= %> b) <% %>
c) <%! %> d) <%@ %>
下面哪个不是jsp:setProperty操作的属性( )。
A.name B.param C.property D.scope