Getting information from the parent of an iFRAME's JSP
843838Apr 18 2006 — edited Apr 18 2006I'm facing a relatively difficult issue that needs a rapid turn-around time which precludes taking a class on JSP. At the moment, I'm mostly doing cut-and-paste programming.
The situation is this:
There is a parent JSP page over which I have no control that is calling an iFRAME in which is embedded another JSP page.
I know enough struts logic to add coding to only display certain elements of that iFRAME-embedded page depending on some attributes of the JSP.
THE PROBLEM:
The iFRAME-embedded JSP is only returning information from itself and not the parent page over which I have no control. What I need is to pull information from the parent to the embedded JSP, but have no idea how to accomplish this. One person told me to use Scriptlets but even that would require quite a bit of time to learn from scratch.
In Short:
On a normal JSP page, if I use a bean:write to <bean:write name="page" property="pageTitle" />, I get the correct results. When this is embedded in a JSP file that's held within an iFRAME, I only get the name of the embedded JSP and not the parent.
Suggestions?