I'll try that - and again many thanks for your help everyone I'll sign off and let ye get back to your own things - my basics are wrong and I'll try and remedy that here
Many thanks again and good luck Angela >>> [EMAIL PROTECTED] 07/17/02 12:42pm >>> I guess Angela first go and read about Servlets and then start making a sample code. Your basics are wrong. -----Original Message----- From: Angela McGrenra [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 4:28 PM To: [EMAIL PROTECTED] Subject: Re: Getting started The code I copied from a SUN site and is as below :- package sl314.generic; import javax.servlet.GenericServlet; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; // Support classes import java.io.IOException; import java.io.PrintWriter; public class HelloServlet extends GenericServlet { public void service(ServletRequest request, ServletResponse response) throws IOException { PrintWriter out = response.getWriter(); // Generate the response out.println("Hello, World!"); out.close(); } } I run it from the following URL: http://localhost:8080/servlet/HelloServlet and the .class file is saved in the following directory: C:\java\jakarta-tomcat-3.3.1\webapps\ROOT\WEB-INF\classes\HelloServlet.class >>> [EMAIL PROTECTED] 07/17/02 11:09am >>> ok that means ur configuration is ok.. now assuming you hv placed ur HelloServlet under webapps/Root/web-inf/classes.. the url would be.. http://localhost:8080/servlet/HelloServlet This is assuming ur class is not within any package and HelloServlet is exactly the same as the class name (case sensitive) If this still doesnt work. then pls send across the code. i shall go thro it. -----Original Message----- From: Angela McGrenra [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 3:30 PM To: [EMAIL PROTECTED] Subject: Re: Getting started logging in to http://localhost:8080/ gives me the default Tomcat home page at http://localhost:8080/index.html- theversion I'm using is 3.3.1 >>> [EMAIL PROTECTED] 07/17/02 10:43am >>> which version of tomcat are u using? try giving just http://localhost:8080/ and tell me what do u get.. if that works then ur conf is alright.. -anoop - Dublin to Frankfurt from EUR39 each way (excl taxes), only when you book online at http://www.aerlingus.com **************************************************************************** *********************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any review, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.If you have received this email in error please notify the sender immediately and delete the material. **************************************************************************** *********************************** ___________________________________________________________________________ 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 ___________________________________________________________________________ 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
