Featured
-
How to split a String
Below I have written a code to split a string.
by shahbaz.ahmmod -
Send Push Notification with Custom Data to iPhone device from Java Server Side
This blog will help you to send Push Notifications
by babita.dhami -
Tomcat and Eclipse Integration Error : “Unknown version of Tomcat was specified”
If you are adding Server in Eclipse for Tomcat, an
by chandan.ahluwalia -
Spring MVC and MongoDB
Repository Class Using MongoDB : Spring has th
by sumit.vyas -
How to create DLL file from java?
Hello Guy's This Blog will guide how to create D
by bhagwan.khichar
Tags
ServletConfig Interface in servlets
ServletConfig interface:
For each servlet, an instance of this interface is created by the container. With the help of this instance, information can be fetched from the configuration file (web.xml).
Advantage:
You don't need need t...
Session tracking in servlets by using HttpSession
HttpSession Interface
It is one of the session tracking techniques.
It basically creates a session for each user and is used to maintain the request data and time interval of a particular. A user may give more than one requests at a particul...
Use of filters in Servlet
Servlet Filter:
Servlet Filter is used to filter the unnecessary requests that is received at the servlet end. It is used to perform tasks such as conversion, logging, compression, encryption and decryption, input validation etc.
It is call...
Servlet request processing by Web Server and Servlet container
1. Web Server
A web server is basically used to give the response to the request specified by the browser (user). It basically uses HTTP protocol for the transmission of data. eg. A user can request for some page by entering the web addres...
Prevent site from showing up in search results on Google, Bing and other search engines
Sometimes we need to prevent our testing.dev site from showing up in search results on Google, Bing and other search engines until we are ready to launch. We can do this by addting "X-Robots-Tag" paramet to header of the response.
Create filte...
What is servlet ?
Servlet is very powerful server side scripting language. It is a class which basically handle network request-response model. It is very powerful as we had earlier like CGI.
Basic Request-Rsponse Model
When browser send http request to jav...