Title: JSP basics: import a Java class for use in a JSP Post by: Mark David on March 16, 2007, 01:51:53 PM JSP basics: import a Java class for use in a JSP
Importing Java classes enables the use of that class without using the fully qualified class name. Java classes can also be imported into JSPs with page directives. To import the Java class java.util.Calendar for use in a JSP, use one of the following: Code: <%@page import="java.util.Calendar"%> Code: <jsp:directive.page import="java.util.Calendar"/> |