
- Forum
- Programming Talk
- Java
- Advantages Needed
Advantages Needed
This is a discussion on Advantages Needed within the Java forums, part of the Programming Talk category; I want to know the highlights or advantages of response Object in JSP. Can someone mention this in brief....
-
Advantages Needed
I want to know the highlights or advantages of response Object in JSP. Can someone mention this in brief.
-
The main advantage or usage of response Object in JSP it helps in the handling of the output of the client and is mostly used by cookies. It is also used with HTTP Headers.
-
02-24-2012, 08:06 AM #3
- Join Date
- Feb 2012
- Answers
- 66
An instance of a class that implements the javax.servlet.http.HttpServletResponse interface is a response object.It represents the response to be made to the client, and it makes the following methods available.
addDateHeader() adds a response header containing the specified header name and the number of milliseconds .
addHeader() adds a response header with the specified name and value.
addCookie() adds the specified cookie to the response.
encodeRedirectURL() encodes the specified URL or returns it unchanged if encoding isn't required.
These are some methods avaliable and there are many more.
-
Sponsored Ads

Reply With Quote





