Meaningless Drivel is fun!
The moose likes JSP and the fly likes JSP and IFrames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP and IFrames" Watch "JSP and IFrames" New topic

JSP and IFrames

dennis zined
Ranch Hand

Joined: Mar 07, 2003
Posts: 330
Hi all. I have a JSP page that has an IFrame which contains another JSP page. Is it possible for the JSP page, contained within the IFrame, to pass its formbean to its parent JSP page?


SCJP 1.4<br />SCWCD 1.4
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

No, frames, as far as the server is concerned are separate webpages.
Beans only exist on the server, not the client.

What you can do (with modern browsers) is create a javascript object and pass that from one frame to another.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: JSP and IFrames
It's not a secret anymore!