Jun 08

If you require multiple imports then you can either use multiple import page directives, or specify them all in one page directive which each import commas separated

Multiple import directives

<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.net.*" %>

One import directive (comma separated)

<%@ page import="java.util.*, java.io.*, java.net.*" %>

written by objects \\ tags: ,


2 Responses to “How to specify multiple imports in a jsp”

  1. Steve Page Says:

    You need “page” between the <%@ and the import. Your examples are invalid.

  2. objects Says:

    Thanks for picking that up. All fixed now

Leave a Reply

You must be logged in to post a comment.