JSP Response Object

Ads
 

JSP Response Object

JSP response Object ?

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:
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
Advertisements
how to generate a bar chart on a JSP PAGE using the arraylist object passed form the servlet.(using jfreechart)
how to generate a bar chart on a JSP PAGE using the arraylist object passed... contains only one object(rollno,name,marks1,marks2,marks3,marks4) from the database.now i have to pass this arraylist object to a jsp page and on that jsp page
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
Request Object In JSP.
jsp
jsp  In any jsp all implicit objects are available directly, in such a case why we need PageContext object again
diplay response
diplay response   Sir, How show sum of two tex boxes data to third box   Answer
JSP include
JSP include       A JSP page can include page fragments from other files to form the complete response. There are two include mechanisms: the include directive and the include
Implicit Objects In JSP
by the client.   response : An implicit object response, specifies.... Using the response object you can manipulate the response to be given... to response, the response can be redirected.   out : An implicit object
JSP
JSP  what are the different scopes an object can have in a jsp page   JSP Scope Variables: Page scope-It makes the data available... the following links: http://www.roseindia.net/jsp/simple-jsp-example
ArrayList object
ArrayList object  i have am ArrayList object it containg data base records in it, now i want to display this ArrayList object data in my jsp programe, plz help me
Session Object from request
request object? Why are we adding cookie object into response object? Why are we... , adding cookie object into response, getting object from request object. one... to naming convention the session object should get from response object.i hope u
JSP
on that page 2>>>Please know me about document object and how use document object? how i can get document & elements of registration page?   Hi Friend, Please visit the following links: http://www.roseindia.net/jsp
jsp 18/04/2013
jsp 18/04/2013  how to retrieve collection object in jsp page
JSP Request URI
the request object that will return the URI of the current JSP page. Understand...; request.getRequestURI ( ) method, which return the URI of the request object in the current JSP... JSP Request URI   
JSP
JSP  how did you implement caching in jsp   OSCache... organization. OSCache has a set of JSP tags that make it easy to implement page caching in your JSP application. Following are some Cache techniques
jsp
jsp  Thank u sir for quick response. my compilation path is http... org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 7 in the jsp file: /jsp/insertdate.jsp month cannot be resolved 4: 5: <% 6: String
ModuleNotFoundError: No module named 'response'
ModuleNotFoundError: No module named 'response'  Hi, My Python... 'response' How to remove the ModuleNotFoundError: No module named 'response... to install padas library. You can install response python with following
ModuleNotFoundError: No module named 'response'
ModuleNotFoundError: No module named 'response'  Hi, My Python... 'response' How to remove the ModuleNotFoundError: No module named 'response... to install padas library. You can install response python with following
jsp
JSP entered name and password is valid  HII Im developing a login page using jsp and eclipse,there are two fields username and password,I want... { protected void doPost(HttpServletRequest request, HttpServletResponse response
JSP
what is JSP forward tag for  what is JSP forward tag for   It forwards the current request to another JSP page. Below is the syntax for the same:- <jsp:forward page="...url..." /> We can also forward parameter
jsp
jsp  how jsp translated into servlets
JSP
JSP  How to run jsp program in eclipse
jsp
jsp  how to create jsp page
Jsp
Jsp  Can I implement interface in jsp
jsp
jsp  how to include two jsp page
jsp
jsp  how to create a table in oracle using jsp and the table name is entered in text feild of jsp page
jsp
jsp  write a code for jsp file generator to generate a jsp page automatically taking html page as input
JSP
JSP  Hi, What is JSP? What is the use of JSP? Thanks   Hi, JSP Stands for Java Server Pages. It is Java technology for developing web applications. JSP is very easy to learn and it allows the developers to use Java
Preventing the creation of a Session in a Jsp Page
have been provided the implicit session object. In jsp the session... will control the request and response object. Declare the session as false in the page...Preventing the creation of a Session in a Jsp Page
jsp
jsp  how to connect the database with jsp using mysql   Hi Friend, Please visit the following links: http://www.roseindia.net/jsp/connectjspwith_mysql.shtml http://www.roseindia.net/jsp/Accessingdatabase-fromJSP.shtml

Ads