hi rajat,
first  put ur servlet class in javawebserver/servlerts directory.
 and give URL http://localhost:8080/servlet/HelloServlet

here servlet is alias name for ur servlets directory.
HelloServlet is ur servlet class.
try it.

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Rajat
Jain
Sent: Wednesday, January 31, 2001 12:08 PM
To: [EMAIL PROTECTED]
Subject: Re: how to run a simple servlet..?


hi ravi
i have already tried the URL u gave me..but it is still not working..one
more
thing ,if i give only     http://localhost:8000/servlet    it gives error
HTTP
403 [Forbidden]..
can u pls. clarify me.

rajat



Ravi N wrote:

> try
>
> Rajat Jain wrote:
>
>  try this
>
> http://localhost:8000/servlet/hello
>
> Rajat Jain wrote:
>   i have downloaded (j2ee  and jdk1.3) from net. i alos set following
>   environment variable as follows:
>
>   JAVA_HOME=    C:\jdk1.3
>   J2EE_HOME=    C:\j2sdkee1.2.1
>
>   now my problem is that i am not able to run even  the simplest servlet
>   program
>   "hello world"  using j2ee server.
>   i gave following URL after starting j2ee server:
>
>   http://localhost:8000/hello
>
>   In above URL 'hello' is class name for 'hello world' program and this
>   class resides in public_html directory of j2sdkee1.2.1 folder.
>
>   PS :    The intresting part is that i have successfully run JSP program.
>
>   pleas help me out..is my URL wrong ?or any configuration setting is
>   required ?.
>
>   thanks in advance
>
>   rajat
>
>   __________
>   _________________________________________________________________
>   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

Reply via email to