Make sure that the method of the form in the two servlets is 'GET' and then you can 
remove
doPost from your servlet.
> error message saying that couldn't find servlet, connection with the server
> reset.
If the first servlet can call the second one, then you should be able to call the 
second
one directly. Make sure your url is correct.

-- Jeetandra


--- Nitin Tomer <[EMAIL PROTECTED]> 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
>

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

___________________________________________________________________________
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