Which of the following would be most appropriate to output the current date to a browser from a JSP?

Which of the following would be most appropriate to output the current date to a browser from a
JSP?

Which of the following would be most appropriate to output the current date to a browser from a
JSP?

A.
<% new java.util.Date().toString(); %>

B.
<%= new java.util.Date().toString() %>

C.
<%! new java.util.Date().toString(); %>

D.
<jsp:useBean id=”date” class=”java.util.Date” />



Leave a Reply 0

Your email address will not be published. Required fields are marked *