No, only servlets are registered in web.xml. You really do need to use
packages believe me...

-----Original Message-----
From: Barry Martin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 9:02 PM
To: 'Tomcat Users List'
Subject: RE: Where to locate class files


Could I also modify the web.xml file to point to my class files?

Barry

-----Original Message-----
From: Ron Day [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 6:51 PM
To: Tomcat Users List
Subject: RE: Where to locate class files


almost....start your package in "classes" directory............

-----Original Message-----
From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 7:43 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Where to locate class files


Here is your problem

Make your class part of a package, then reproduce the package in the
WEB-INF

For instance, if you call your package  com.MyFiles   put the Java file
in WEB-INF/com/MyFiles

Then in you jsp, do an import  com.MyFiles.Spud

- Andrew

> -----Original Message-----
> From: Barry Martin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 21, 2002 7:20 PM
> To: 'Tomcat Users List'
> Subject: RE: Where to locate class files
>
>
> Sure Peter,
>
> Here you go. Here is the html,jsp and java code.
>
> Thanks, Barry
>
> -----Original Message-----
> From: Peter T. Abplanalp [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 21, 2002 5:04 PM
> To: 'Tomcat Users List'
> Subject: Re: Where to locate class files
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wed, Aug 21, 2002 at 05:00:08PM -0600, Barry Martin wrote:
> > Thanks Peter,
>
> welcome.
>
> > The WEB-INF directory is in uppercase. I have tried
> restarting tomcat.
> This
> > is in a testing environment with tomcat running standalone
> on a win2k
> > box. The version of tomcat is 4.0.1. For the class file in
> question I
> > simply typed the java code in notepad and saved the .java
> to \classes
> > and then compiled from the command prompt which saved the
> .class file
> > in the same directory. It compiled fine.
>
> well, it seems you've done everything according to the law.
> forgive me for asking but you did name the class Spud and put
> it in Spud.java, right?  can you post the code that calls
> Spud and the code for Spud?
>
> - --
> Peter Abplanalp
>
> Email:   [EMAIL PROTECTED]
> PGP:     pgp.mit.edu
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE9ZBx8ggA8sH0iRXQRAkNWAJ0QM/vCHa8oKSoglc29mHTu++3DTwCfR8ta
> 2n4EbkNtX6LmI6HtMKFy5Ws=
> =eWDw
> -----END PGP SIGNATURE-----
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to