File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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>
jQuery in Action, 3rd edition
subject: JSP:FORWARD
It's not a secret anymore!