多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

Click the Exhibit button. Given: 11.<% com.example.Advisor advisor = new com.example.Advisor(); %> 12.<% request.setAttribute("foo", advisor); %> Assuming there are no other "foo" attributes in the web application,which three are valid EL expressions forretrieving the advice property of advisor?()

  • A、${foo.advice}
  • B、${request.foo.advice}
  • C、${requestScope.foo.advice}
  • D、${requestScope[foo[advice]]}
  • E、${requestScope["foo"]["advice"]}
正确答案:A,C,E
答案解析:
进入题库查看解析

微信扫一扫手机做题