Ad Java MCQ
Advanced Java
A bean present in the page and identified as 'mybean' has a property named 'name'. Which of the following is a correct way to print the value of this property?
A bean present in the page and identified as 'mybean' has a property named 'name'. Which of the following is a correct way to print the value of this property?
A bean present in the page and identified as 'mybean' has a property named 'name'. Which of the following is a correct way to print the value of this property?
a. <jsp:getProperty name="mybean" property="name"/>
b. <%out.println(mybean.getName())%>
c. <%=out.println(mybean.getName())%>
d. <%=jsp:getProperty name="mybean" property="name"%>
Answer: A
Learn More :
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.