faqts : Computers : Programming : Languages : Java : JSP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

52 of 97 people (54%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How to import my own .class into a jsp file?

Aug 10th, 2001 04:40
Ben Young, Romain GIACALONE, Book: Professional JSP from Wrox


I would suggest the "page" directive.
<%@ page import="package.class" %>
You can add multiple classes by comma delimiting them:
import="package.class, package2.class, ..."
The page directive also contains many other options.  You can find a
good reference of them at:
http://java.sun.com/products/jsp/tags/10/syntaxref10.fm7.html
Hope that helps,
Ben