Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

use of response Object

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am in JSP page a.jsp, its has one hyper link on it, My intention is I have to some data in request object and pass it to next page ,

when I click on the hyperlink, I should navigate to Next JSP b.jsp, there I will get the same data

I am really confused about Use of response object in servlet or JSP,upto my knowledge ,I use request object between JSP and servlets,I never use any response Object in code

Any One please explain
1) what is the use of response oject
2) when it should be used?
3) I put some data in response object only(I do not know the reason) ,I never put any object in response

I read some article but it does not given me clear idea
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The whole purpose of a JSP is to easily create the response. When writing a JSP you will never really be concerned with the response object.

Things are more interesting in a servlet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic