下面选项中,属于pageContext对象提供的存储数据的方法有()
A: setAttribute()
B: getAttribute()
C: removeAtribute()
D: findAttribute()
A: setAttribute()
B: getAttribute()
C: removeAtribute()
D: findAttribute()
A,B,C,D
举一反三
- 下面选项中,属于pageContext对象提供的存储数据的方法有( ) A: removeAttribute B: getAttribute C: findAttribute D: setAttribute
- 下面选项中,属于pageContext对象提供的存储数据的方法有()
- pageContext对象的findAttribute()方法的作用是
- 关于HttpSession的getAttribute()和setAttribute()方法,正确的说法是______。 A: getAttribute()方法返回类型是String B: getAttribute()方法返回类型是Object C: setAttribute()方法保存数据时如果名字重复会抛出异常 D: setAttribute()方法保存数据时如果名字重复会覆盖以前的数据
- Cookie对象可以通过setAttribute()方法设置,通过getAttribute()方法读取。
内容
- 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( )