This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes use of response Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "use of response Object" Watch "use of response Object" New topic
Author

use of response Object

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
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

Joined: Jan 10, 2002
Posts: 61082
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: use of response Object