Comment

Renu
Servlet example using doPost().,
May 12, 2008 at 11:56 AM

import javax.servlet.*;
import javax.servlet.httpservlet.*;
import java.io.*;

public class Demo extends HttpServlet
{
public void doPost(HttpServletRequest req,HttpServletResponse res)
{
res.setContentType("text/html");
PrintWriter out=res.getWriter();

out.println("This is example of Sevlet using only doPost(): ");
}
}
View All Comments | View Tutorial
Related Tutorial and Articles

Advertisements

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles