JavaBeat

  • Home
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Privacy

Servlet Life Cycle: Explanation

June 27, 2019 by itadmin Leave a Comment

Servlets are small programs that run at server side and creates dynamic web pages. Servlets respond to requests sent by the user. In MVC architecture, servlets act as a controller. The controller processes and responds to user requests. The Servlet Life Cycle contains the following steps: Load servlet class. Create a servlet instance. Call the […]

Filed Under: Java EE Tagged With: Servlets Tutorials

Cookies In Servlet

February 12, 2014 by Krishna Srinivasan Leave a Comment

Java EE Tutorials Servlets Tutorials Servlets Interview Questions Cookies are text data sent by server to the client and it gets saved at the client local machine. This is a small bits of information that a web browser send to browser and that are browser returns unchanged after visiting the same page. Server can accept multiple […]

Filed Under: Java EE Tagged With: Servlets Tutorials

How To Get Client IP Address In Servlet

February 12, 2014 by Krishna Srinivasan Leave a Comment

Java EE Tutorials Servlets Tutorials Servlets Interview Questions The host name and IP address of the client requesting the servlet can be obtained using the HttpRequest object. In the following section we have a detailed java code to get clients address in a servlet. If the client uses proxy server , the real request to […]

Filed Under: Java EE Tagged With: Servlets Tutorials

Servlet Filter

February 12, 2014 by Krishna Srinivasan Leave a Comment

Java EE Tutorials Servlets Tutorials Servlets Interview Questions Filter is an object that transforms the information of request or response from one format to another. The filter class is declared in the deployment class. The other types that can be implemented in a web application using filters is: Security verification. Session validation. Internationalization. Triggering resource […]

Filed Under: Java EE Tagged With: Servlets Tutorials

Session Tracking Using Servlet

February 12, 2014 by Krishna Srinivasan Leave a Comment

Java EE Tutorials Servlets Tutorials Servlets Interview Questions A session is a collection of HTTP request , over a period of time. A session is specific to the user and for each user a new session is created to track all the request from the user. In servlet session tracking can used to track the user […]

Filed Under: Java EE Tagged With: Servlets Tutorials

Servlets Tutorials

February 8, 2014 by Krishna Srinivasan Leave a Comment

Servlet is Java technology for writing the server side applications. It is the core technology used for developing any Java server applications. Any other Java frameworks created are internally using the servlet for hiding the complex part of how servlet handles the web application request and renders the response. However, knowing the internals of servlet […]

Filed Under: Tutorials Tagged With: Servlets Tutorials

Request Headers In Servlet

February 8, 2014 by Krishna Srinivasan Leave a Comment

Java EE Tutorials Servlets Tutorials Servlets Interview Questions Request Header Request header is used to pass additional information about the request or itself to the server. Request header can be used by client to pass useful information. getHeaderNames() and getHeader() methods of javax.servlet.http.HttpServletRequest interface can be used to get the header information. Following important request header […]

Filed Under: Java EE Tagged With: Servlets Tutorials

How To Refresh Servlet

February 8, 2014 by Krishna Srinivasan Leave a Comment

Java EE Tutorials Servlets Tutorials Servlets Interview Questions We can refresh the server in two ways Through client side and another through server side. Consider the webpage containing the live score of the match or any live activities we want to see in web page in such cases we have to either refresh the web […]

Filed Under: Java EE Tagged With: Servlets Tutorials

How To Set PDF File Display In Servlet

February 7, 2014 by Krishna Srinivasan Leave a Comment

Java EE Tutorials Servlets Tutorials Servlets Interview Questions In this article we will write a simple program which will write content to a PDF file. Example of writing data into PDF using Servlet. Create a Servlet called PDFDemo. Explanation: Content-Disposition in response header contains inline disposition type and file name attributes. inline is disposition type. […]

Filed Under: Java EE Tagged With: Servlets Tutorials

How To Initialize Variables In Servlet

February 7, 2014 by Krishna Srinivasan Leave a Comment

Java EE Tutorials Servlets Tutorials Servlets Interview Questions While developing web applications (servlets), some data elements are required to process the request at the development phase. For example, in login application we need to enter user name and password. But user name and password are available only at the time of deploying the application. Instead […]

Filed Under: Java EE Tagged With: Servlets Tutorials

  • 1
  • 2
  • 3
  • Next Page »

Follow Us

  • Facebook
  • Pinterest
JavaBeat

FEATURED TUTORIALS

Java Scanner Class With Examples

Java Scanner Class With Examples

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

The Java 6.0 Compiler API

Copyright © by JavaBeat · All rights reserved

This website uses cookies to ensure you get the best experience on our website. Learn more.