*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP:FORWARD" Watch "JSP:FORWARD" New topic
Author

JSP:FORWARD

Osse Croado
Greenhorn

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.
Thanks.
Osse.
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="http://www.amazon.com/exec/obidos/ASIN/0072127686/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072124253/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">Instant Java Servlets</A>
 
 
subject: JSP:FORWARD
 
Similar Threads
documentbase
refresh problem using Frames in struts
closing window with frames
Multiple Windows
sequential loading of frames in html