package Servelt;
import java.io.IOException;
@WebServlet(
urlPatterns={"/servletDemo"},
initParams={
@WebInitParam(name="username",value="root"),
@WebInitParam(name="password",value="abcd")
})
public class ServeltDemo extends HttpServlet{
private static final long serialVersionUID=1L;
protected void doGet(HttpServletRequest request,HttpServlet
request.getWriter().appen("Served at:").append(request.getWriter)}
protected void doPost(HttpServletRequest request,HttpServletRequest){
doGet(request,response);
}
}