3:54 am - Monday February 20, 2017

Archive: Z-A Servlet codes Subscribe to Z-A Servlet codes

Pdf viewer using servlet

BACK Pdf viewer using servlet index.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...

Sample programs in servlet

    Sample registration form example using Servlet Simple login example using Servlet File download example using Servlet File uploading example using Servlet Servlet program to find number of hits in a page Auto refresh example using...

Cookie Methods with Example Programs:

Cookie getComment(),setComment() _______________________________________________________________________________________________________ Cookie  getDomain()/setDomain() _______________________________________________________________________________________________________ Cookie...

Servlet chaning and its type

For an single action processing more than one servlet is known as servlet chaining. Servlet chaining can be done within the server or between two different servers. Types of servlet Chaining 1.Request Dispatcher 1.1 forward 1.2 include 2.SendRedirect BACK

What is a Servlet

Servlet is a java program that extends httpservlet to communicate with client browser, servet is responsible for controlling view page in our web application. Servlet can handle multiple requests concurrently and can synchronize request.   BACK

httpSession in Servlet

 Http Session: HttpSession is also known as server side session,  session information will be saved in a web container inself. Since session are stored in web container it can be used for secure data. To enable session in web container: HttpSession...

Cookies

Cookies:  Cookies are information that a Web server sends to a browser and that the browser returns back to web server when visiting the same Web site later. Cookie can be saved in a browser as a key value pair To add a cookie in browser we...

Hidden form fields in Servlet

Hidden Form fields:  Hidden form is a form of session tracking which saves the information in client browser itself. We uses hidden box in html to hide the session information from client. We cannot use this type of session for secure data...

Types of Session in Servlet

Types of session:   The session in servlet is mainly classified into two types Server side session Server side session is also known as HttpSession Client side session There are three types of client side session Cookies URL rewriting Hidden...

Hello world Example using servlet

Servlet Interfaces

Servlet interface declares some of the basic methods to be implemented while developing web application using servlet. GenericServlet is a class which implements Servlet Interface             Some of the methods are destroy() getServletConfig() getServletInfo() init(ServletConfig...