aspose file tools*
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

Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 60071

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

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

Joined: Jun 08, 2010
Posts: 383

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

Joined: Jun 25, 2001
Posts: 15661

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: Send jsp page using setAttribute
Similar Threads
JSP tag to use to call servlet
Struts : Accessing a javabean inside a JSP
Need to Configure Servlet Init Parameters for the jsp
Acess list elements on foreach JSTL tag
Accessing Object in a JSP using JSTL