Home Tutorialhelp Comment Servlet example using doPost().

 
 

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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.