You are on page 1of 1

import

import
import
public

javax.servlet.http.*;
javax.servlet.*;
java.io.*;
class DemoServlet1 extends GenericServlet{
public void service(ServletRequest req,ServletResponse res)throw
s ServletException,IOException{
res.setContentType("text/html");
String Name = req.getParameter("Name");
PrintWriter out=res.getWriter();
out.println("<html><body>");
out.println("Welcome Name");
out.println("</body></html>");
}
}

You might also like