permaculture playing cards
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
JavaRanch » Java Forums » Java » JSP
Bookmark "use of response Object" Watch "use of response Object" New topic

use of response Object

jacob deiter
Ranch Hand

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

Joined: Jan 10, 2002
Posts: 63532

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: use of response Object
It's not a secret anymore!