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
Advertisement
Related Tutorial and Articles
Advertisements Advertisements
 

 

 

DMCA.com