• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer

Computer Notes

Library
    • Computer Fundamental
    • Computer Memory
    • DBMS Tutorial
    • Operating System
    • Computer Networking
    • C Programming
    • C++ Programming
    • Java Programming
    • C# Programming
    • SQL Tutorial
    • Management Tutorial
    • Computer Graphics
    • Compiler Design
    • Style Sheet
    • JavaScript Tutorial
    • Html Tutorial
    • Wordpress Tutorial
    • Python Tutorial
    • PHP Tutorial
    • JSP Tutorial
    • AngularJS Tutorial
    • Data Structures
    • E Commerce Tutorial
    • Visual Basic
    • Structs2 Tutorial
    • Digital Electronics
    • Internet Terms
    • Servlet Tutorial
    • Software Engineering
    • Interviews Questions
    • Basic Terms
    • Troubleshooting
Menu

Header Right

Home » Servlet » Servlet Example

Servlet for handling HTTP POST request Example

By Dinesh Thakur

Like doGet () method, the do Post () method is invoked by server through service () method to handle HTTP POST request. The doPost () method is used when large amount of data is required to be passed to the server which is not possible with the help of doGet () method.

 

In doGet () method, parameters are appended to the URL whereas, in do Post () method parameters are sent in separate line in the HTTP request body. The do Get ( ) method is mostly used when some information is to be retrieved from the server and the doPost () method is used when data is to be updated on server or data is to be submitted to the server. To understand the working of do Post () method, let us consider a sample program to define a servlet for handling the HTTP POST request.

A program to define a servlet for handling HTTP POST request

import java.io.*;

import java.util.*;

import javax.servlet.*;

public class ServletPostExample extends HttpServlet

{

    public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException

   {

      PrintWriter out = res.getWriter();

      String login= req.getParameter(“loginid”);

      String password= req.getParameter(“password”);

      out.println(“Your login ID is: “);

      out.println(login);

      out.println(“Your password is: “);

      out.println(password);

      out.close();

   }

}

The corresponding HTML code for this servlet is as follows

<HTML>

          <BODY>

                  <CENTER>

                         <FORM NAME=”Form1″ METHOD=”post” ACTION=”https://ecomputernotes.com:8080/ServletGetExample”>

                                 <B>Login ID</B> <INPUT TYPE=”text” NAME=”loginid” SIZE=”30″>

                                 <P>

                                 <B>Password</B> <INPUT TYPE=”password” NAME=”password” SIZE=”30″>

                                 </P>

                                 <P>

                                 <INPUT TYPE=submit VALUE=”Submit”.>

                                 </P>

           </BODY>

</HTML>

This HTML code create as web page containing a form

Enter the required data and press the submit button on the web page. The browser will display the response generated dynamically by the corresponding servlet.

Servlet for handling HTTP GET request Example

By Dinesh Thakur

The doGet () method is invoked by server through service () method to handle a HTTP GET request. This method also handles HTTP HEAD request automatically as HEAD request is nothing but a GET request having no body in the code for response and only includes request header fields. To understand the working of doGet () method, let us consider a sample program to define a servlet for handling the HTTP GET request. [Read more…] about Servlet for handling HTTP GET request Example

Servlet using GenericServlet class Example

By Dinesh Thakur

The GenericServlet class implements the Servlet and ServletConfig interfaces. Since service () method is declared as an abstract method in GenericServlet class, it is an abstract class. The class extending this class must implement the service () method. It is used to create servlets which are protocol independent.

To understand the creation of servlets using the GenericServlet class, lets us consider a simple program given here. For this, two files will be required; one .java file in which servlet is defined and another. html file containing code for web page.

A program to create servlet using GenericServlet class

import java.io.*;

import java.util.*;

import javax.servlet.*;

public class ServletExample extends GenericServlet

{

    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException

   {

      PrintWriter out = res.getWriter();

      String login= req.getParameter(“loginid”);

      String password= req.getParameter(“password”);

      out.print(“You have successfully login :”);

      out.println(“Your login ID is: “+login);

      out.println(“Your password is: ” +password);

      out.close();

   }

}

The explanation of this program is as follow.

1. Firstly, the javax.servlet package is imported which contains interfaces and classes to create servlet.

2. Next, the class named ServletExample is defined which extends the GenericServlet class. This class provides methods for initializing ,invoking and destroying an instance of servlet. The init () and destroy () methods are inherited from the GenericServlet class. The ServletExample class must override the service () method as it is declared as abstract in GenericServlet class.

3. The two parameters passed to the service () method are req and res, the objects of ServletRequest and ServletResponse interfaces respectively. The req object allows to read data provided in the client request and the res object is used to develop response for the client request.

4. The getWriter () method returns PrintWriter stream. This stream is used to send data as part of the response. The println () method can be used to write HTML code forming part of the response.

5. The getParameter () method of ServletRequest interface is used to retrieve data sent To the server by the client .For example, the expression req. getParameter (“loginid”) is used the retrieve value stored in parameter loginid provided as a part of the request.

This code for servlet will be executed as a response to some action performed on the webpage. The HTML code(.html) for the webpage is as follows.

<HTML>

   <BODY>

      <CENTER>

         <FORM NAME=”Form1″ METHOD=”post” ACTION=”https://ecomputernotes.com:8080/ServletExample”>

              <B>Login ID</B> <INPUT TYPE=”text” NAME=”loginid” SIZE=”30″>

              <P>

              <B>Password</B> <INPUT TYPE=”password” NAME=”password” SIZE=”30″>

             </P>

             <P>

                  <INPUT TYPE=submit VALUE=”Submit”>

            </P>

   </BODY>

</HTML>

This HTML code creates a web page containing a form. This form includes two text fields, one submit button and one reset button. The action attribute of< FORM>tag is used to specify the URL for identifying the servlet to be processed for the POST request. Save this file as ServletExample.html in root directory.

To make servlet working, compile ServletExample.java file and store its .class file in the appropriate directory. Add its name in web.xml file using the following statements in the section which defines the servlets.

<servlet>

<servlet-name>ServletExample</servlet-name>

<servlet-class>ServletExample</servlet-class>

</servlet>

Also, add the following statements in the section which defines the section mappings in web.xml.

<servlet-mapping>

<servlet-name>ServletExample</servlet-name>

<url-pattem>ServletExample</url-pattern>

</servlet-mapping>

Start the Tomcat so that it is in the running mode in the background when web page is being processed. Open the Internet Explorer and enter the following URL in the address bar.

https://ecomputernotes.com:8080/ServletExample.html

      Web Page Displaying the Form

Enter the required data and press the submit button. The browser will display the response generated dynamically by the corresponding servlet.

               Output Generated by Servlet

What Is File Uploading? Important Classes Of Javazoom.Api

By Dinesh Thakur

The process of selecting file from the client machine file system and sending that file to the server machine system is known as file uploading. File uploading and downloading using servlet-api is a complex process, that is why industry uses JavaZoom 3rd party API. [Read more…] about What Is File Uploading? Important Classes Of Javazoom.Api

What is HttpServletResponse and It’s Methods?

By Dinesh Thakur

HttpServletResponse is a predefined interface present in javax.servlet.http package. It can be said that it is a mirror image of request object. The response object is where the servlet can write information about the data it will send back. Whereas the majority of the methods in the request object start with GET, indicating that they get a value, many of the important methods in the response object start with SET, indicating that they change some property. Note that these interfaces adhere to the usual naming conventions for beans.

Methods in HttpServletResponse

i. public void addCookie(Cookie cookie)

Adds the specified cookie to the response. This method can be called multiple times to set more than one cookie.

ii. public void addDateHeader (String name, long date)

Adds a response header with the given name and date-value.

iii. public void addHeader(String name,String value)

Adds a response header with the given name and value.

iv public void addlntHeader(String name,int value)

Adds a response header with the given name and integer value.

v public boolean containsHeader(String name)

Returns a boolean indicating whether the named response header has already been set.

vi. public String encodeRedirectURL(String url)

Encodes the specified URL for use in the sendRedirect method or, if encoding is not needed, returns the URL unchanged.

vii. public String encodeURL(String url)

Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged.

viii. public void sendError(int sc) throws IOException

Sends an error response to the client using the specified status code and clearing the buffer.

ix. public void sendError(int Be, String mag) throws IOException

Sends an error response to the client using the specified status clearing the buffer.

x. public void sendRedirect(string location) throws IOException

Sends a temporary redirect response to the client using the specified redirect location URL.

xi. public void setDateHeader(String name,long date)

Sets a response header with the given name and date-value.

xii. public void setHeader(String name, String value)

Sets a response header with the given name and value.

xiii. public void setlntHeader (String name,int value)

Sets a response header with the given name and integer value.

xiv public void setStatus(int sc)

Sets the status code for this response.

What is HttpServletRequest and It’s Methods?

By Dinesh Thakur

HttpServletRequest is an interface and extends the ServletRequest interface. By extending the ServletRequest this interface is able to allow request information for HTTP Servlets. Object of the HttpServletRequest is created by the Servlet container and, then, it is passed to the service method (doGet(), doPost(), etc.) of the Servlet.

Extends the ServletRequest interface to provide request information for HTTP servlets.

The servlet container creates an HttpServletRequest object and passes it as an argument to the servlet’s service methods (doGet, doPost, etc.).

i. public String getAuthType()

Returns the name of the authentication scheme used to protect the servlet.

ii. public String getContextPath ()

Returns the portion of the request URI that indicates the context of the request.

iii. public Cookie [] getCookies ( )

Returns an array containing all of the cookie objects the client sent with this request.

iv public long getDateHeader(String name)

Returns the value of the specified request header as a long value that represents a date object.

v public String getHeader(String name)

Returns the value of the specified request header as a string.

vi. public Enumeration getHeaderNames()

Returns an enumeration of all the header names this request contains.

vii. public Enumeration getHeaders (String name)

Returns all the values of the specified request header as an enumeration of String objects.

viii. public int getIntHeader (String name)

Returns the value of the specified request header as an int.

ix. public String getMethod()

Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT, same as the value of the CGI variable REQUEST_METHOD.

x. public String getPathlnfo()

Returns any extra path information associated with the URL the client sent when it made this request.

xi. public String getpathTranslated ()

Returns any extra path information after the servlet name but before the query string, and translates it to a real path.

xii. public String getQueryString ()

Returns the query string that is contained in the request URL after the path.

xiii. public String getRemoteUser ()

Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated.

xiv public String getRequestedSessionld()

Returns the session ID specified by the client.

xv public String getRequestURI()

Returns the part of this request’s URL from the protocol name up to the query string in the first line of the HTTP request.

xvi. public StringBuffer getRequestURL()

Reconstructs the URL the client used to make the request.

xvii.public String getServletpath ()

Returns the part of this request’s URL that calls the serv let.

xviii.public HttpSession getSession ()

Returns the current session associated with this request, or if the request does not have a session, creates one.

xix. public HttpSession getSession(boolean create)

Returns the current HttpSession associated with this request or, if there is no current session and create is true, returns a new session.

xx. public Principal getUserPrincipal()

Returns a java.security. Principal object containing the name of the current authenticated user.

xxi. public boolean isRequestedSessionldFromCookie()

Checks whether the requested session ID came in as a cookie.

xxii. public boolean isRequestedSessionldValid()

Checks whether the requested session ID is still valid.

xxiii. public boolean isUserlnRole (String role)

Returns a boolean indicating whether the authenticated user is included in the specified logical role.

Understanding HTML Forms

By Dinesh Thakur

Before handling HTTP get requests and HTTP post requests, you should have some knowledge about HTML forms.

HTML forms provide a simple and reliable user interface to collect data from the user and transmit the data to a servlet or other server side programs for processing. You might have seen HTML forms while using search engine visiting online book stores, tracking stocks on the web, getting information about availability of train tickets etc.

In order to construct a HTML form the following HTML tags are generally used .

• <FORM ACTION = “url” METHOD = “method”></FORM>

This tag defines the form body. It contains two attributes action and method. The action attribute specifies the address of the server program (i.e. servlet or JSP page) that will process the form data when the form is submitted. The method attribute can be either GET or POST, it indicates the type of HTTP request sent to the server. If the Method attribute is set to GET, the form data will be appended to the end of the specified URL after the question mark. If it is set to POST, then the form data will be sent after the HTTP request headers and a blank line.

•  <INPUT TYPE = “type” NAME = “name” >………… </INPUT>

This tag creates an input field. The type attribute specifies the input type. Possible types are text for single line text field, radio for radio button, checkbox for a check box ,textarea for multiple line text field, password for password field, submit for submit button ,reset for reset button etc. The name attribute gives a formal name for the attribute. This name attribute is used by the servlet program to retrieve its associated value. The names of radio buttons in a group must be identical.

• <SELECT NAME = “name” SIZE =” size”>…….. </SELECT>

This tag defines a combobox or a list. The NAME attribute gives it a formal name. The SIZE attribute specifies the number of rows in the list.

• <OPTION SELECTED= “selected” VALUE = “value”>

This tag defines a list of choices within the <SELECT> and </SELECT> tag. The value attribute gives the value to be transmitted with the name of the select menu if the current position is selected. The selected attribute specifies the particular menu item shown is selected, when the page is loaded.

           user registration form

                 The Fig. shows a user registration form

HANDLING FORM DATA USING HTTP GET REQUEST

In order to handle form data using HTTP GET request, we first create a user registration form as shown earlier and a servlet that will handle HTTP GET request. The servlet is invoked when the user enters the data in the form and clicks the submit button. The servlet obtains all the information entered by the user in the form and displays it.

The coding for user-registration form (c:\Tomcat6\webApps\examples) is as follows,

<html>
   <head>
      <title> User Registration Form </title>    
   </head>
   <body>
      <h2 align=”center”> User Registration Form </h2>
      <form method =”get” action =”/examples/servlet/DisplayUserInfo”>
       <p align=”center”> First Name :<input type=”text” name=”fname”/>                              
          <p align=”center”> Last Name : <input type=”text” name=”lname”/>
          <p align=”center”> Email Id : <input type=”text” name=”emailid”/>
          <p align=”center”> <input type="submit" value="submit" />
          <input type="reset" value="Reset" />
          </p>
      </form>
   </body>
</html>

In the given html code, notice that the Method attribute of the FORM tag is set to GET, which indicates that the HTTP GET request is sent to the server. The ACTION attribute of the FORM tag is set to/examples/servlet/DisplayUserInfo which identifies the address of the servlet that will process the HTTP GET request. The code for the DisplayUserInfo. java is as follows,.

import java.io.*; 
import javax.servlet.*;
import javax.servlet.http.*;
public class DisplayUserInfo extends HttpServlet
{
     public void doGet (HttpServletRequest request, HttpServletResponse
     response) throws ServletException, IOException
     {
          response.setContentType (“text/html”);
          PrintWriter out =response.getWriter ();   
          String fname = request.getParameter (“fname”);
          String lname = request.getParameter (“lname”);
          String emailid = request.getParameter (“emailid”);
          out.println (“You have entered:<br>”)
          out.println (“First Name ……”+fname);
          out.println (“<br> Last Name ……”+lname);
          out.println (“<br> Emailid ……”+emailid);
          out.println (“<h2> thanks for registration </h2> <hr>”);
          out.close ();
        }
}

In the above servlet code, our servlet class DisplayUserInfo extends HttpServlet class which is the most likely class that all the servlets will extend when you create servlets in web application. We override doGet () method as it has to process HTTP GET request. This method takes an HttpServletRequest object that encapsulates the information contained in the request and HTTPServletResponse object that encapsulates the information contained in the response. Our implementation of doGet () method performs two tasks:

• To extract the form parameters from HTTP request.

• To generate the response.

We call the getParameter () method of HTTP servlet request to get the value of a form parameter. If the parameter does not exist, this method returns null. It returns an empty string if an empty value is passed to the servlet. The rest of the statements in the servlet are similar to the ones we have already discussed in SimpleServlet.java.

NOTE: The parameter name specified in the getParameter () method must match to the one that is specified in HTML source code. Also, the parameter names are case sensitive.

Now compile and save the servlet program in the C:\Tomcat6\webapps\examples\WEB-INF\classes directory. After this, open your web browser and type the following URL

https://ecomputernotes.com:8080/servletApp/User_reg.html

To load user_reg. html in the web browser. As a result, the following webpage will be displayed.

             

Enter the firstname, lastname and email id and click on the Submit button. As a result, SimpleServlet.java servlet will be invoked. When you click the Submit but ton, the values you entered in the form are passed as name-value pars in a GET request. This form data will be appended to the end of the specified URL after the question mark as shown

Address: http:localhost:8080/examples/servlet/DisplayUserInfo? fname =Daljeet & lname=Singh & [email protected]

it is clear that name-value pairs are passed with the name and value separated by ‘=’. If there is more than one name-value pair, each pair is separated by ampersand (&).

When the servlet SimpleServlet.java receives the request, it extracts the fname, lname and email parameters from the HTTP request using the getParameter () method of the HttpServletRequest interface. The statement,

String fname = request.getParameter (“fname”);

will extract the parameter named fname in the <FORM> tag of the user-reg.html file and store it in request object. Similarly, we extract the lname and email parameters.

After processing the request, the servlet displays the form data along with an appropriate message.

When the user enter the data in the form displayed in the web browser and click the Submit button, then as in case of get () method, the servlet obtains all the information entered by the user in the form and displays it. But unlike the get () method, the values entered are not appended to the requested URL rather the form data will be sent after the HTTP request headers and a blank line.

The output displayed will be as follows,

               

How to instruct browser window for not storing the output in the buffer?

By Dinesh Thakur

By default every web resource program generated output/response content will be stored in the buffer before it is getting displayed on browser window as web page content. Due to this browser window may show old output collected from the buffer even though the web resource program of web application is capable of generating new and updated output.   

                                                    

* To solve the above problem instruct browser window for not storing the output in the buffer from web resource program through web server by using response headers as shown below.

res. setHeader (“cache-control”, “no-cache”); //for http 1.1 based servers

res. setHeader (“pragma”, “no-cache”); //for http 1.0 based servers

* Buffer is a temporary memory which stores the data for temporary period. Buffer is also called as cache.

How to gather miscellaneous information from HttpRequest

By Dinesh Thakur

We can gather the miscellaneous information from HttpRequest by calling various getxxx methods on request object as shown below. [Read more…] about How to gather miscellaneous information from HttpRequest

Can we place only parameterized constructor in our Servlet class?

By Dinesh Thakur

No, Because Servlet container uses 0-param constructor of our Servlet class that create the object of our Servlet class. If 0-param constructor (default constructor) not available then the Servlet container throws: java.lang.InstantiationException.

Note: If there are no constructors in java class then compiler generates 0-param constructor in that class as default constructor during compilation. Otherwise this default constructor will not be generated.

Servlets First Examples

By Dinesh Thakur

Once the Tomcat is installed and configured, you need to perform the following steps to create and run a servlet.

1. Create a directory structure under Tomcat for your application

2. Write the servlet source code

3. Compile your servlet source code

4. Run the Servlet

Creating the Application Directory

When you install Tomcat, several sub directories are automatically created under the Tomcat home directory (in our case c: \ Tomcat6). One of the subdirectory is ‘webApps’ in which you store your web applications. A web application is a collection of web resources such as servlets, html pages, images, multimedia contents, Java Server Pages, XML configuration files, Java support classes and Java support libraries.

A web application has a well-known directory structure in which all the files that are part of the application reside. The web application directory contains a context root – the top level directory for the entire web application. All the servlets, HTML documents, JSPs and supporting files such as images and class files reside in this directory or its subdirectories. The name of this directory is specified by the web application creator and is placed under ‘webApps’ directory. In our case, we create a context root directory named servletApp. Note that this directory name is important as it appears in the URL while accessing the servlet. A separate context root directory is dedicated to each servlet application.

Under the context root directory servletApp, create the src and WEB-INF directories. The src directory is for source files. The WEB-INF directory contains the resources that are not to be directly downloaded to the client (browser). Under the WEB-INF directory, create classes and lib directory. In the classes directory, you place serv1et class files and other utility classes used in a web application. If the classes are part of a package, the complete package directory structure would begin here. In the lib directory, you place Java achieve (JAR) files. The JAR files can contain servlet class files and other supporting class files used in web application.

If you have html files, you put them directly under servletApp directory. All your image files should be placed in the images directory under servletApp directory.

For convience, we are using examples directory under webApps directory for explaining various examples.

Write the Servlet Source Code

To write the servlet, perform the following steps:

1. Open a text editor such as MS-Notepad to edit a new file. Save this file in the working directory (in our case c: \javaprog\).

2. Enter the servlet import statements to include the appropriate packages. Most servlets need access to atleast three packages – javax.servlet, java.servlet.http and java.io. So when you create servlet source code, you start with the following import statements.

import javax.servlet.*;
import java.io.*;
import javax.servlet.http.*;

 

 

 

 

 

 

In addition, you may need additional import statements depending on what other processing your servlet does.

3. Extend the genericServlet class: Since all servlets are required to implement the javax.servlet. Servlet interface and the GenericServlet class provide an implementation of this interface, so our class should extend GenericServlet class.

After the import statements, type class declaration as follows.

public class SimpleServlet extends GenericServlet
{
      …………………………………………………
}

 

 

 

 

 

 

 

The SimpleServlet class extends the GenericServlet class of javax.servlet package. The GenericServlet class provides functionality that makes it easy to handle requests and responses.

4. Write the required servlet methods: After the SimpleServlet class declaration, override the service () method which is inherited from GenericServlet class. Inside service () method, the request is handled and appropriate response is returned. Information about the request is available through a ServletRequest object and the response is returned via a ServletResponse object. Since the service () method can throw two exceptions (javax.servlet. ServletException and java.io.IOException), so you must throw them in the method declaration.

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class SimpleServlet extend GenericServlet
{
     public void service (ServletRequest request, ServletResponse response)
     throw ServletException, IOException
    {
         .........................
    }
         .........................
}

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5. Get the request information (if any) and generate the appropriate response: In this step, we will write the code that displays a message Welcome to Servlet on the client’s web browser when the browser issues a request to the servlet.

The source code for SimpleServlet.java is as follows,

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class SimpleServlet extends GenericServlet
 {
   public void service (ServletRequest request, ServletResponse response) throws     IOException, ServletException
    {
      response.setContentType("text/html");
      PrintWriter out = response.getWriter();
      out.println("<b>Welcome to Servlet</b>");
      out.close();
    }
}

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The first line of the code in the service () method

response.setContentType(“text/html”);

sets the content type for the response. The client’s browser uses this information to know how to treat the response data. Since we are generating HTML output, the content type is being set to text/html”.

Then the statement,

printWriter out = response.getWriter();

calls the getWriter () method that returns a PrintWriter object (out)for sending character text in the response. Finally, printIn () method of the PrintWriter object is used to write the servlet response (Welcome to Servlet in bold form).

Now edit the web.xml file

<servlet> 
   <servlet-name>SimpleServlet </servlet-name>
   <servlet-class>SimpleServlet </servlet-class>
</servlet>
<!-- servlet mapping -->
<servlet-mapping>
   <servlet-name>SimpleServlet </servlet-name>
   <url-pattern>/SimpleServlet </url-pattern>
</servlet-mapping>

 

 

 

 

 

 

 

 

Compile Your Source Code

In this step, compile the servlet source code file C:\javaprog\SimpleServlet. java. For this, change the directory to your working directory, c: \javaprog and compile your file,

C:\javaprog>javac SimpleServlet.java

On successful compilation, SimpleServlet.class is created. Now copy this class file into the directory that Tomcat uses

C:\Tomcat6\webApps\examples\WEB-INF\classes

so as to run your servlet.

Run the Servlet

Before running the servlet, you need to start the Tomcat if it is not running. Now start a web browser and type

https://ecomputernotes.com:8080/examples/servlet/SimpleServlet

in the URL. The result will be shown as follows

Welcome to Servlet

Primary Sidebar

Servlet Tutorials

Servlet Tutorials

  • Servlet - Home
  • Servlet - Types
  • Servlet - Advantages
  • Servlet - Container
  • Servlet - API
  • Servlet - Chaining
  • Servlet - Life Cycle
  • Servlet - Developement Way
  • Servlet - Servlet Vs CGI
  • Servlet - Server Side
  • Servlet - HttpServletRequest
  • Servlet - Cookies Advantages
  • Servlet - JDBC Architecture
  • Servlet - HttpServlet
  • Servlet - HttpServletResponse
  • Servlet - Web Technology
  • Servlet - Applet Communication
  • Servlet - Html Communication
  • Servlet - HTTP POST Request
  • Servlet - HTTP GET Request

Other Links

  • Servlet - PDF Version

Footer

Basic Course

  • Computer Fundamental
  • Computer Networking
  • Operating System
  • Database System
  • Computer Graphics
  • Management System
  • Software Engineering
  • Digital Electronics
  • Electronic Commerce
  • Compiler Design
  • Troubleshooting

Programming

  • Java Programming
  • Structured Query (SQL)
  • C Programming
  • C++ Programming
  • Visual Basic
  • Data Structures
  • Struts 2
  • Java Servlet
  • C# Programming
  • Basic Terms
  • Interviews

World Wide Web

  • Internet
  • Java Script
  • HTML Language
  • Cascading Style Sheet
  • Java Server Pages
  • Wordpress
  • PHP
  • Python Tutorial
  • AngularJS
  • Troubleshooting

 About Us |  Contact Us |  FAQ

Dinesh Thakur is a Technology Columinist and founder of Computer Notes.

Copyright © 2025. All Rights Reserved.

APPLY FOR ONLINE JOB IN BIGGEST CRYPTO COMPANIES
APPLY NOW