packages in jsp

hi,
im sorta new at this.....
is it possible to import packages in jsp?
ie i want to import java.util.Random to make instances of a
Random object in order to (obviously) generate random numbers?
Is it possible to import the package or is there another way?

Comments

  • : hi,
    : im sorta new at this.....
    : is it possible to import packages in jsp?
    : ie i want to import java.util.Random to make instances of a
    : Random object in order to (obviously) generate random numbers?
    : Is it possible to import the package or is there another way?
    :
    :

    You can import packages by using the page' directive:

    <%@ page import="java.util.Random,morePackages" %>
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion