Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3934548
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:43:42+00:00 2026-05-19T23:43:42+00:00

I have a pretty weird problem, here it goes: I have a jsp page,

  • 0

I have a pretty weird problem, here it goes:

I have a jsp page, in this jsp, there is an iframe showing some content from another jsp. I want this iframe to be refreshed in the <body onload="blabla"..>

So what I tried to do is, I converted the static HTML iframe code into a java code in a method. So it was like this:

.
.
html here …

<iframe ... blabla>
</iframe

html here..
.
.

And I did it like:

<body onload="refreshiframe();">

.
.
html here …

<%! void refreshiframe()
{
out.print("<iframe.. blabla> </iframe>");
}
%>

html here …
.
.

But the problem is, the out.print inside refreshiframe gives compile error. My compiler, jdeveloper 10g, specifically says that “variable ‘out’ not found”. I can use out.print outside of the method but not inside the method. How can I use out.print in the refreshiframe() method ? or is there a better way to solve this problem ? Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T23:43:42+00:00Added an answer on May 19, 2026 at 11:43 pm

    Indeed, you’re confusing Java/JSP with JavaScript.

    The <body onload> should point to a JavaScript function, not to a Java/JSP method. If I understand you right, you want to refresh/reload the content of an iframe? If so, add the following to the <head> of your HTML document.

    <script>
        function refreshiframe() {
            document.getElementById('frameId').contentWindow.location.reload();
        }
    </script>
    

    And give your <iframe> element an id="frameId".

    <iframe id="frameId"></iframe>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is pretty weird. I have my Profiler open and it obviously shows that
I have a weird problem where I cannot run aapt from an sbt command
I've a weird problem with malloc. I have this typedefs: typedef struct buffer {
This is the second time that I have this really weird problem with WCF
Weired problem! ASP.NET Session expires instantly. In my web.config I have this session settings:
I have a login.jsp page which contains a login form. Once logged in the
I’m sorry if the title isn’t clear, but this is a weird problem. I
I have a very strange problem. I'm making a pretty standard ajax-call with jQuery,
I'm having a pretty weird problem with one of my rails apps. I think
I found this pretty weird thing when I first installed SQL Server 2008, for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.