Howdy, Stranger!

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

Categories

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

  • ozkrozkr Member Posts: 34
    : 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.