GeeCON Prague 2014*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes about import in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "about import in jsp" Watch "about import in jsp" New topic
Author

about import in jsp

Sundar Murthi
Ranch Hand

Joined: Mar 05, 2004
Posts: 209
Hi ranchers

this qn from Enthuware trial

what is the ans?

Fill in the blanks with appropriate JSP code fragments.



Options:

<%@import package='java.util.*' %>
<%@page import='java.util.*' %>
<%=new Date()%>
<%new Date()%>

the ans given is

<%@import package='java.util.*' %>
<html>
<head>
<title> Test Page </title>
<body>
Today's Date is <%=new Date()%>
</body>
</html>


its realy correct?
john guthrie
Ranch Hand

Joined: Aug 05, 2002
Posts: 124
i saw that yesterday when i was last-minute cramming for the exam. i considered it an incorrect answer. there is no "import" directive
harikumar devandla
Greenhorn

Joined: Nov 26, 2004
Posts: 10
I think they have corrected this question.
please go and see jdiscuss.com again.
 
GeeCON Prague 2014
 
subject: about import in jsp