YES u HAVE TO PLACE THE SERVLETS IN THE
..WEBAPPS/YOUR_APPLICATION/web-inf/classes/ DIRECTORY.
To run the servlets, use the url:
http://localhost:8080/your_application/servlet/filename if U R running it on
a local machine. if your classfile is part of a package, make a directory of
that packagename and place the class file there. Then in the above URL,
change the filename with PkgName.filename
Regards,
Vikas
-----Original Message-----
From: Partha Bhattacharjee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 26, 2000 5:54 PM
To: [EMAIL PROTECTED]
Subject: Running servlets in tomcat.
Hello forum,
I have just installed jkarta tomcat in my comp.
I have created a new folder in the webapp directory.
In it whatever file ('html', 'jsp') i keep can be run by the server.
The class file is getting made in some new folder in the work directory.
Now I also have a WEB-INF dir in which i again have classes dir.
Now my question is how to run servlets.
I have tried putting them in the classes dir.
I believe i need to write some .xml file also specifying the name of the
servlet and all. Can any body give me the exact details of this file.
thanks
partha
___________________________________________________________________________
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
___________________________________________________________________________
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