/    Sign up×
Community /Pin to ProfileBookmark

JSP/Java Scriptlet question: Getting info from the parent of an iFRAME’s JSP

I’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?

to post a comment
Java

0Be the first to comment 😎

×

Success!

Help @Sylvan012 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...