Cookies In Servlet

java-ee-thumbnail

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 […]

How To Get Client IP Address In Servlet

java-ee-thumbnail

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 […]

Servlet Filter

java-ee-thumbnail

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 […]

Session Tracking Using Servlet

java-ee-thumbnail

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 […]

Servlets Tutorials

java-ee-thumbnail

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 […]

Request Headers In Servlet

java-ee-thumbnail

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 […]

How To Refresh Servlet

java-ee-thumbnail

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 […]

How To Set PDF File Display In Servlet

java-ee-thumbnail

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. […]

How To Initialize Variables In Servlet

java-ee-thumbnail

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 […]

ServletInputStream and ServletOutputStream

java-ee-thumbnail

Java EE Tutorials Servlets Tutorials Servlets Interview Questions javax.servlet.ServletInputStream and javax.servlet.ServletOutputStream are abstract classes. These classes define several key methods that the other stream classes implement. Two of the most important methods are read( ) and write( ), which are used for reading the client request and writing servlet response to client respectively. ServletInputStream The […]

Close
Please support the site
By clicking any of these buttons you help our site to get better