File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Send jsp page using setAttribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Send jsp page using setAttribute" Watch "Send jsp page using setAttribute" New topic

Send jsp page using setAttribute

satyaprasad veeramsetti

Joined: Dec 21, 2012
Posts: 28
Hi Ranchers,

Can we send complete JSP page using setAttribute?

Please give me the reply as soon as possible,

Thanks in advance,,,

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

What does it mean to "send complete JSP page"? And whatever it is, why would you want to do it?

[Asking smart questions] [About Bear] [Books by Bear]
Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

What exactly are you trying to achieve by this?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

No, you can't "send a jsp page" at all. HTTP is a strict request/response architecture. The server can never "send" anything, only respond to a request. A JSP will create content that goes into the HttpResponse output stream, but it doesn't "send" it, the response goes back whether you added content or not.

If this sounds like I'm being pedantic, it's because computers aren't very forgiving. When you make incorrect or imprecise assumptions, they won't do what you want.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Send jsp page using setAttribute
jQuery in Action, 3rd edition