how to import class in jsp

How to import class in jsp

import keyword is use to import classes in JSP page.


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <%@ page import="java.util.Date"%>
    <h2>Todays Date and Time: <%=new Date()%></h2>


Today's Date and Time: Fri Jan 20 14:21:51 IST 2017

Full-stack web and mobile app development company Contact Us : Skype: indore.webcoder Email: Sales: +91 8085506229