Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

JSP Response Object

Ads

 
 

Share on Google+Share on Google+

Vijay Kumar
JSP Response Object
1 Answer(s)      6 years and 9 months ago
Posted in : JSP-Interview Questions

JSP response Object ?

Ads
View Answers

October 26, 2010 at 4:25 PM


The response object denotes the HTTP Response data. The result or the information of a request is denoted with this object. The response object handles the output of the client. This contrasts with the request object. The class or the interface name of the response object is http.HttpServletResponse.

The response object is written: Javax.servlet.http.httpservletresponse.

  • setContentType()
  • addCookie(Cookie cookie)
  • addHeader(String name, String value)
  • containsHeader(String name)
  • sendRedirect(String)
  • sendError(int status_code)

Ads









Related Tutorials/Questions & Answers:
JSP Response Object
JSP Response Object  JSP response Object ?   The response object denotes the HTTP Response data. The result or the information of a request is denoted with this object. The response object handles the output
JSP implicit object "response"
JSP implicit object "response" In this section, we will discuss about JSP implicit object "response" with an example. Using 'response' object , reply is sent back to the browser. It is an implicit object
Advertisements
JSP:NEED RESPONSE ASAP PLEASE! - JSP-Servlet
JSP:NEED RESPONSE ASAP PLEASE!  Hi freind, If you could respond... and then sends this data in url to the next jsp page. The code works fine...://localhost:8080/examples/jsp/popup.jsp?name='+content1+'&&dd='+content2,'mywindow
Servlet Response Send Redirect - JSP-Servlet
Servlet Response Send Redirect  Hi, Thank you for your previous... value to the next jsp? 2. I have a servlet that saves patient data from.../jsp/popup.jsp?id='+ide+'&&dd='+d,'mywindow','width=500, height=350,toolbar
JSP Out Object
JSP Out Object  JSP Out Object?   out object denotes... of the object out is jsp.JspWriter. The out object "Javax.servlet.jsp.JspWriter". Methods of out Object: clear() clearBuffer() flush() isAutoFlush() getBufferSize
JSP Application Object
JSP Application Object  JSP Application Object?   Application Object is used to share the data with all application pages. Thus, all users.... The Application object is accessed by any JSP present in the application. The class
JSP Session Object
JSP Session Object  JSP Session Object?   Session Object... or the interface name of the object session is http.HttpSession. The object session is written as: Javax.servlet.http.httpsession. The Session Object provides
Page object - JSP-Servlet
of PAGE object of implicit JSP object. If this is possible explain me about it's methods. I did not find any methods or explanation of this object. Pls help me....  Hi friend, Implicit Objects in JSP are objects
JSP Request Object
JSP Request Object  JSP Request Object ?   request object in JSP is used to get the values that the client passes to the web server during an HTTP request. The request object is used to take the value from the client?s
jsp object retrieval - Spring
jsp object retrieval  I have a controller which calls a Service to build a List of data from the database. I want to pass the List to the jsp to use.... However, I am concerned this object could be huge in some instances. Any
JSP Implicit object "session"
JSP IMPLICIT  OBJECT "SESSION"In this Section , we will discuss about JSP implicit object "session" with an example. Session Object... of object as string's value and you can get this value in other JSP page
Exception: java.lang.IllegalStateException: getWriter() has already been called for this response - JSP-Servlet
Exception: java.lang.IllegalStateException: getWriter() has already been called for this response    response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); Statement st1
Bussiness Object API - JSP-Servlet
Bussiness Object API  I m feteching the reports from CMS server... = (IReportSourceFactory)enterpriseSession.getService("PSReportFactory"); Object...); viewer.processHttpRequest(request, response, getServletConfig().getServletContext
Access Request and Response
, create a jsp page for accessing the request and response object. ... the request and response object in struts 2 application. To access the request... and to access the response object, use the ActionContext or implement
Request Object In JSP
Request Object In JSP       This section illustrates more about the JSP implicit object called... to the server, is received by the HTTP request object of the JSP. To access
JSP implicit object "application"
JSP IMPLICIT OBJECT application In this section, we will discuss about JSP... in an application. It means the "application" object is accessed by any JSP...) : The method log of Application object is used to write a text string to the JSP
get a session object - JSP-Servlet
get a session object  how to do in a table when i click on a radio button i should get the id value which is in the same row and store it in the session this is in jsp when in the servlet if i call a get session i have to get
Pass a dom object from jsp to servlet
Pass a dom object from jsp to servlet  I am creating a dom object in my jsp page. now i want to pass that object in a servlet through calling servlet in jsp. can anyone help me
How to use an object properties in jsp page
How to use an object properties in jsp page  I have a arraylist of objects 'User' populated using struts 2 action class while loading that jsp page. In that JSP I have included another jsp using following tag: Here instead
diplay response
diplay response   Sir, How show sum of two tex boxes data to third box   Answer
How to get jSon object in servlet from jsp - JSP-Servlet
How to get jSon object in servlet from jsp  How to get jSon object in servlet from jsp? In jsp page i have written: var sel... object in servlet???  Hi Friend, Please visit the following link
Read MultipartRequest object twice. - JSP-Servlet
Read MultipartRequest object twice.  Hi, Thanks for your reply for "How to revert back ServletInputStream object after reading once." Q. Now I am facing problem for ServletInputStream object. Can we read stream twice
JSP implicit object "pagecontext"
JSP IMPLICIT OBJECT  pagecontext A PageContext instance provides access to all the namespaces associated with a JSP page, provides access to several... and pageContext are implicit JSP Objects. The page object represents
Forward a JSP Page
and the second one is of response object. The request object  goes to the controller... will be processed, then the request object is passed to that jsp or servlet and the output is displayed to the browser by the response object. Sometimes it happens
object
object  is it possible to create object in the same class..?.   Yes, you can. class CreateObject { CreateObject(){ System.out.println("I have an object."); } public static void main(String[] args
JSP implicit object out
JSP implicit object out In this Section, we will discuss about implicit object out & it's methods. Out object denotes the Output stream...;jsp.JspWriter". This object is instantiated implicitly from JSP Writer class
JSP implicit object "request"
JSP implicit object "request" In this section, we will discuss about... object is used for returning the URL of the current JSP page.Example : ... is  /Jsp/test.jsp. setAttribute(String,Object): This method assigns
Track user's session using 'session' object in JSP
Track user's session using 'session' object in JSP This section is about tracking user identity across different JSP pages using 'session' object. Session Tracking : Session tracking is a mechanism that is used