阿摩線上測驗 登入

試題詳解

試卷:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(51-100)#84004 | 科目:OCE

試卷資訊

試卷名稱:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(51-100)#84004

科目:OCE

88 An appropriate jsp:useBean tag has been placed into a JSP, and identified the bean using the name "theBean". The bean class includes a method with the following signature: public boolean isOurCustomer () You wish to insert the test true or false into the output HTML based on the return value of this method. Which is true?
(A) This can be achieved using a tag of the form: <jsp:getProperty name= "theBean" property "ourCustomer" />
(B) This can be achieved using a tag of the form: <jsp:getProperty id= "theBean" property= "ourCustomer" />
(C) This can be achieved using a tag of the form: <jsp:getProperty id= "theBean" invoke "getOurCustomer" />
(D) This can be achieved using a tag of the form: <jsp:getProperty name= "theBean" type= "boolean" property= "ourCustomer" />
(E) This cannot be achieved because the return type of isOurCustomer () is not String F. This cannot be achieved because the method isOurCustomer () does not adhere to JavaBeans conventions.
正確答案:登入後查看