通过OGNL访问 ContextMap里的某个对象的属性可以用哪些方法?
A:
B: object.name
C:
D: object['name']
E:
F: object["name"]
G: ${object.name}
A:
B: object.name
C:
D: object['name']
E:
F: object["name"]
G: ${object.name}
举一反三
- 下列哪个方法能够正确的将数据存储到session中 A: session.set(String name,Object value) B: session.setAttribute(String name,Object value) C: session.addAttribute(String name,Object value) D: session.putAttribute(String name,Object value)
- 下列方法中,能正确创建 JavaScript 对象的是( )。 A: var txt = new Object[name:"George",price:25] B: var txt = new Object(name:"George",price:25) C: var txt = new Object{name:"George",price:25} D: var txt = new Object({name:"George",price:25})
- 通过()方法可以将内容保存在session中。 A: session.setValues(String name,Object obj) B: session.setAttribute(String namej) C: session.setAttribute(String name,Object obj) D: session.getValues(String name)
- 下列方法中,能正确创建 JavaScript 对象的是( )。 A: var txt = new Object[name:"George",price:25] B: var txt = new Object(name:"George",price:25) C: var txt = new Object{name:"George",price:25} D: var txt = new Object({name:"George",price:25})
- 以下有关类的声明,正确的是 A: class Student(object) def __init__(self, name, score): self.name = name self.score = score B: class Student(object) def __init__(self, name, score) self.name = name self.score = score C: class Student(object): def __init__(self, name, score): self.name = name self.score = score D: class Student(object): def __int__(self, name, score): self.name = name self.score = score