Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about import in jsp

 
Sundar Murthi
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think they have corrected this question.
please go and see jdiscuss.com again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic