running the servlets (pls answer this question )
I wrote a simple servlet which prints a message on to the screen, and when
I give the url http://localhost:8080/servlet1.class, it runs perfectly and
prints the message, but when i link the same servlet to a html file in the
action tag specifying the url "http://localhost:8080/servlet1.class"( i put
a submit button in the form, on action it calls the servlet1.class which
has to print the message...) but is says..filenot found HTTP405 error..actually
when a servlet is found the webserver has to print a message on the console
saying that the servlet is found.in either case that is when the servlet1.class
is run idependanly without link to html, though it runs I am not getting
this message why? second thing is when it is runnning independanly why is
it not running when i link it to a HTML..pls explain if anyone of you undersood
the problem,,,thanks in advance...
i thought the disscussion group would be of some help to me while practising
but many of my questions are being left unanswered , Pls someone take the
initiative and help me..
satish
satish
Re: running the servlets (pls answer this question )
try http://localhost:8080/servlet1
or http://localhost:8080/servlet/servlet1
-rsh
"satish" <satish141@england.com> wrote in message news:399a7a07$1@news.devx.com...
>
>
>
> I wrote a simple servlet which prints a message on to the screen, and when
> I give the url http://localhost:8080/servlet1.class, it runs perfectly and
> prints the message, but when i link the same servlet to a html file in the
> action tag specifying the url "http://localhost:8080/servlet1.class"( i put
> a submit button in the form, on action it calls the servlet1.class which
> has to print the message...) but is says..filenot found HTTP405 error..actually
> when a servlet is found the webserver has to print a message on the console
> saying that the servlet is found.in either case that is when the servlet1.class
> is run idependanly without link to html, though it runs I am not getting
> this message why? second thing is when it is runnning independanly why is
> it not running when i link it to a HTML..pls explain if anyone of you undersood
> the problem,,,thanks in advance...
>
> i thought the disscussion group would be of some help to me while practising
> but many of my questions are being left unanswered , Pls someone take the
> initiative and help me..
>
> satish
>
> satish