GoConqr has a new look! Let us know what you think.

Notes

ServletProgramming

Dhruv Dalwadi English 1 page

Content of the notes (1)

Page 1

Servlet Simple Program

This Program Is Done Using HttpServlet , Where I Have Used doGet().We Can Also Use doPsot() instead.

web.xml :

ServletHome

ServletHome

ServletHome

/ServletHome

ServletHome.java:

import java.io.*;

import javax.servlet.*;

import javax.servlet.http.*;

public class ServletHome extends HttpServlet

{

public void doGet(HttpServletRequest request,HttpServletResponse response)throws IOException

{

PrintWriter out = response.getWriter();

out.println("Dhruv Dalwadi");

}

}

Servlet Is An Interface

GenericServlet Is A Class And HttpServlet Is Also A Class

Information

Description
Note on ServletProgramming, created by Dhruv Dalwadi on 20/02/2018.
Created by
Dhruv Dalwadi
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?