• 2022-06-04
    下面选项中,属于pageContext对象提供的存储数据的方法有()
    A: setAttribute()
    B: getAttribute()
    C: removeAtribute()
    D: findAttribute()
  • A,B,C,D

    内容

    • 0

      session对象中用于设定指定名字的属性值,并且把它存储在session对象中的方法是()。 A: setAttribute B: getAttributeNames C: getValue D: getAttribute

    • 1

      在会话对象中存储数据,可以使用getAttribute(String name)方法。

    • 2

      使用config对象的()方法可以获取web.xml文件中的初始化参数. A: getParameter B: setAttribute C: getAttribute D: getInitParameter

    • 3

      使用response对象进行重定向时,使用的方法是()。 A: getAttribute B: setContentType C: sendRedirect D: setAttribute

    • 4

      使用response对象进行重定向时使用的方法为( )。 A: getAttribute( ) B: sendRedirect( ) C: setContentType( ) D: setAttribute( )