Hi guys,

I am using Post Method using following form. When i execute this form thru
Netscape,then Error 'A Network error occured while netscape was receiving
data.
(Network Error :Connection reset by peer) Try connecting again' comes. I am
using
jsdk2.1. Can anybody tell me the reason? Get Methods are working fine.

<FORM METHOD=POST ACTION=/servlet/Test >
Employee No <INPUT TYPE=text NAME=id ><BR>
<INPUT TYPE=SUBMIT>
</FORM>

Sevlet code is as follows :

public class Test extends HttpServlet {

public void doPost(HttpServletRequest req,HttpServletResponse res)
           throws ServletException,IOException {

    res.setContentType("text/plain");
    PrintWriter out = res.getWriter();

    out.println("This is for Demo Purposes.....");
  }
}

___________________________________________________________________________
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