File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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.


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

the ans given is

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

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

Joined: Nov 26, 2004
Posts: 10
I think they have corrected this question.
please go and see again.
I agree. Here's the link:
subject: about import in jsp
jQuery in Action, 3rd edition