How are you calling the servlet, with a form? If so, then you need a
doPost() method, but if you are calling the servlet with a link form the
web page, then you would need the doGet() method. In order to more fully
answer this question, I would need to at least see the part of the html
file that calls the servlet, and possibly part of the the doPost() or
doGet() methods. Did you try debugging it by checking the error logs to
see if there are any error messages? Try using some System.out.println()
with some useful information to see where it is going wrong. Anything
else, just ask and I can probably help.
On Fri, 25 Jun 1999, Nitin Tomer wrote:
> Hi All,
>
> I'm facing a strange problem. I am using two servlets for some purpose. The
> first servlet accepts some input from user and in second servlet output
> corresponding to that input is generated and again in second servlet user can
> give input and ask for output.
>
> The problem is that the second servlet works fine when called first time (by
> the first servlet) but when it is called by itself it won't work and I get an
> error message saying that couldn't find servlet, connection with the server
> reset.
>
> I'm using both doPost and doGet methods in the servlet. All the code is in
> doGet and doPost simply calls doGet. But when I removed doPost I got an error
> message saying that this URL doesn't support POST method, that's why I included
> it.
>
> Pl help me out.
>
> Thanx,
>
> Nitin
>
> ___________________________________________________________________________
> 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
>
Talk to you later,
Larry M. Lemons
http://php.indiana.edu/~llemons/home.html
Live your life as a tale to be told..
always make the more interesting choice.
___________________________________________________________________________
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