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 :