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 Servlets and the fly likes JSP:FORWARD 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 » Servlets
Bookmark "JSP:FORWARD" Watch "JSP:FORWARD" New topic


Osse Croado

Joined: Aug 02, 2001
Posts: 1
It is possible to apply somethig like target="_top" to forward.
I want to use forward to open a window, in a window with frames, I want to destroy frames and fill the whole window with the new one.
Phil Hanna
Ranch Hand

Joined: Apr 05, 2001
Posts: 118
It is the browser, not the server, which controls the creation of frames. The server doesn't know anything about them. All it does is respond to individual HTTP requests for pages and return them to the client that requested them.
If you want JSP output to appear in a frame, you need to have the URL that the client clicks specify a frame target. Remember that forward() is entirely a server-side operation; the browser is unaware of it.

Phil Hanna
Sun Certified Programmer for the Java 2 Platform
Author of :
JSP: The Complete Reference
Instant Java Servlets

Phil Hanna<BR>Sun Certified Programmer for the Java 2 Platform<BR>Author of :<BR><A HREF="" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="" TARGET=_blank rel="nofollow">Instant Java Servlets</A>
I agree. Here's the link:
subject: JSP:FORWARD