Servlets can be in packages .
if You want that Your servlet to be in package: com.ml.servlet
than the first line of the code should be :
package com.ml.servlet;
After compling it should be copied in: root/servlet-dir/com/ml/servlet/
Package structure must follow the directory structure.
Hope it helps,
Andras.
----- Original Message -----
From: Ashby, Paul (London) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 1999 11:28 AM
Subject: Packages
> I have written my servlet that cointains a number of classfiles. So far I
> have just copied the lot into the /servlet dir on the web server. I would
> like to package the classes into a package called com.ml.servlet.
>
> Am I correct in thinking that the top level class cannot be in the
package
> (the one derived from HttpSrervlet) since that needs to go directly into
the
> servlet directory - whereas I can package all the other files and then
> iomport com.ml.servlet into the main class.
>
> Ideally I would like to put all of the classes into a single package but I
> haven't managed to get this to work
>
> Any advice appreciated
>
> _______________
> Paul Ashby
> Merrill Lynch, London
> +44 (0)171 867 4025
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html