Iframe, jsp & refresh/reload issues

Good Morning,
I have a problem with iframe, this is what happend:
I'm using a code like this one
...some html code...
<iframe src="myPage.jsp"></iframe>
...some code here too...myPage.jsp has a form, I sumbit the form and then if something will happen I redirect to newPage.jsp.
Well, now, if I'm on newPage.jsp, if i try to reload this page using F5 or the browser button the page that will be reloaded is myPage.jsp and not the page I was seeing.
Does anyone know why?
Thanx a lot,
Omar

You are actually refreshing the outer page that contains the iframe, which will send a new request to myPage.jsp in order to fill in the iframe. If you need the functionality of refreshing outer page does not reset the inner page to the default, you will have to store the page that is supposed to be displayed in the iframe as a variable in the user's session. Have it default to myPage.jsp.
//In the page that contains the iframe...
<%
  String iframePage = (String)session.getAttribute("iframePage");
  if (iframePage == null) {
    iframePage = "myPage.jsp";
    session.setAttribute("iframePage", iframePage);
  iframePage = response.encodeURL(iframePage);
%>
  <iframe src="<%=iframePage%>"></iframe>Then when something happens that makes it go to myPage.jsp, change the variable in session to newPage.jsp.
//someplace where the myPage.jsp form is processed ...
  String iframePage = "newPage.jsp";
  session.setAttribute("iframePage", iframePage);
  iframePage = response.encodeURL(iframePage);
  response.sendRedirect(iframePage);You will have to know when to remove the variable from the session, or reset it back to the default value...

Similar Messages

  • Is there a any way to refresh/reload file icon in finder 10.8?

    Hi,
    I am looking for programatically to refresh/reload file icon in finder. I already tried below solutions.
    1) apple script
    a) tell application "Finder"
          update POSIX file "File Path"
        end tell
    b)
    tell application "Finder"
              repeat with i from 1 to count of Finder windows
                        tell window i
                                  try
      update every item with necessity
                                  end try
                        end tell
              end repeat
    end tell
    both are working before 10.8, not working after 10.8
    2) Apple event
            err = AEBuildAppleEvent( kAEFinderSuite, kAESync, typeApplSignature,
                                    &kFinderSig, sizeof(OSType), kAutoGenerateReturnID,
                                    kAnyTransactionID, &theEvent, NULL, "'----':alis(@@)", itemAlias );
    Not working in 10.8, worked in 10.7
    3) Refresh Quicklook cache.
    4) Changing the modified date of file. This works, but need solution without changing file system.
    5) relaunch finder. This works,but need solution without relaunch. This is ugly.
    It looks finder cache the icon.
    Thanks
    P

    Hi P,
    I am facing similiar problem (http://discussions.apple.com/message/22716409#22716409), have you any finding about the issue or any workaround.
    Thanks

  • 10g How to Refresh / Reload records in table

    I am extremely new to JDeveloper and I am just trying to get my head around a few of the more simple aspects. I have worked through a few tutorials and learnt the basics.
    I have only one table involved as what I am trying to achieve is quite simple. I have a browse form (where I can see all records in the table and navigate my way through them), an edit form (where I can edit a record using an edit link associated with the table row) and a find form (where I can type in details to pull matching records). I have linked the find results form to the edit page so that once a record is found the user can edit this record. This bit works fine (surprised the hell out of me) but the problem is that when the edits are made and the confirm button is clicked the screen returns to the browse page (this is correct) but in the browse table there is only the record I just edited, I can't see all the others. I'm pretty sure there must be an easy way to fix this with some kind of refresh/reload data action in between the find/edit and browse page. Please can someone help.
    If you need any further information let me know, I hope this simple query can be solved easily. Many thanks, Ben Sayers

    Frank,
    I used the basic find mode for this. Executing the query finds the records that match but when I have finished with the 'finding' and just want to browse all records again, what code do I need and where do I put it?
    Thanks you for you help, once I've got my head around this I should be able to fumble my way through the rest. But all the tutorials so far seem so high-level and I am so far away from the code I have no idea how to actually implement anything myself. If you could detail the sets for this I would be able to start to understand the workings of things.
    Many thanks,
    Ben Sayers

  • Image reloading Issue - Imagefix

    Hi all,
    I have requirement like a grid component with images (Thumbnails).I have used the code of from javafx site(Thumnails.fx etc)
    view style:Microsoft explorer view with thumbnail
    Problem:Image reloading Issue - Imagefix
    When i deleting selected image from the grid i am create the object of imagegrid for updated list of images.The problem i am facing after 3 o4 continious sequences the images were not displaying on grid.Every time insert/deleting on image grid functionality i am creating image grid object even though problem still exist.
    //Code is like
    def image :ImageFix =getImage();
    function getImage():ImageFix{
    if(url.endsWith(".pdf")){
    url=url.replaceAll(".pdf","001.png");
    var pdfThumbnai:File=new File(url);
    if(not pdfThumbnai.exists()){
    ImageFix{
    backgroundLoading:true
    preserveRatio:true
    height:100
    width:100
    url:"{__DIR__}images/pdf-file-logo-icon.jpg";
    //applicationContext.pdfThumbnail;
    else{
    ImageFix {
    height:100
    width:100
    backgroundLoading:true
    preserveRatio:true
    url:"file:///{url}"
    else ImageFix{
    backgroundLoading:true
    preserveRatio:true
    height:100
    width:100
    url:url
    // the image variable setting imageView for following variable
    def imageView : ImageView = ImageView {
    smooth: false
    cache: true
    image: image
    cursor:Cursor.HAND
    fitHeight:100
    fitWidth:100
    onMouseClicked: function(evt : MouseEvent) : Void
    println("count value in Image Grid is {count}");
    var id:Integer;
    if(evt.clickCount >= 2)
    applicationContextDMS.indexOfImg=count;
    println("fileVectorObj {fileVectorObj}");
    showOCRScreen(count,folderID,fileVectorObj);
    if(evt.clickCount==1)
    applicationContextDMS.indexOfImg=count;
    selectImage(this);
    // Scale the thumbnail up when the mouse enters.
    onMouseEntered: function(evt: MouseEvent) : Void
    gr.visible=true;
    onMouseExited: function( e: MouseEvent ):Void {
    gr.visible=false;
    Please help out resolve this issuse.
    Thanks in advance

    The only work around that I found was to rename the image file. Once renaming occurred, the image file when updated was rendered correctly. I have read an earlier bug report that claimed this was fixed. I do not believe it to be so. If anyone has any additional information please present it.

  • How to disable Refresh,Reload in browser and user should not allow to multiple browser sessions ?

    Dear All,
    How to disable Refresh,Reload in browser and end user should not allow to multiple browser sessions in portal.Where we need to configure the settings or any code in masthead or any other component. My server version is 7.4 - SP5 .Please help us.
    Thanks for advance,
    BR,
    Durga Rao.

    Dear all,
    i am able to logoff the click refresh button on keyboard.I am using this code to log off the user into the portal.
    document.onkeydown = function(e)
      var key;
      if (window.event) key = event.keyCode
      else
      var unicode = e.keyCode ? e.keyCode : e.charCode
      key = unicode
      switch (key)
      { //event.keyCode
      case 116: //F5 button
        LSAPI.sessionPlugin.logoff();
      event.returnValue = false;
      key = 0; //event.keyCode = 0;
      return false;
      case 82: //R button
      if (event.ctrlKey)
    LSAPI.sessionPlugin.logoff();
      event.returnValue = false;
      key = 0; //event.keyCode = 0;
      return false;
      case 91: // ctrl + R Button
    LSAPI.sessionPlugin.logoff();
      event.returnValue= false;
      key=0;
      return false;
    Thanks.
    But i am unable to control the multiple windows opening the browser.So any one can tell me the how to block the new window and new tab/duplicate tab option.
    BR,
    Durga Rao.

  • How to send information from HTML page to JSP without reloading HTML page?

    Hello,
    Is it possible to send information(row number selected by user) from HTML page to JSP without reloading HTML page?
    Thanks.
    Oleg.

    Yes, you can do this with framesets and a hidden frame.
    You need a bit of JavaScritp in the "visible" frame that
    sets the location of the hidden frame to the JSP.
    Add the user's choice as a parameter to the JSP URL.

  • CPwmIEBrowserHelper causes iframe reload issue

    This is a fantastically strange issue.
    Not only does the CPwmIEBrowserHelper cause a ~7 second delay in using IE when booted, but it causes a "This page contains secure and non-secure content" error when you have an iframe refresh itself with a meta refresh tag.  See http://stackoverflow.com/questions/711101/ie7-meta-refresh-inside-an-https-iframe-causes-mixed-conte...
    Is there somewhere other than here I can report this bug?

    Instead of showing/hiding the DIV, you could try to change
    its size to 1px height and 1px width.
    I guess it's not a real good way to do it, but it may works
    :)

  • Refresh or Reload Issue with Multiple Blcoks in the One View

    Hi All
    We have one view which consists of multiple blocks say multiple UI container elements.
    Each container contains different UI elements and business logics.
    For example: Having Container 1 and Container 2. If we are doing any action in Container2, container 1 also getting refreshed. We donu2019t want container 1 to be refreshed or reload.
    To achieve above requirement what are the UI Element to be used or other way in CE7.2?
    Thanks in Advance , your help will be highly appreciated.
    BR
    SS

    there's no problem using numbers in package names though there are some problems with object names in flash that start with a number.
    there would be a problem in all package names before flash 9 because there were no package names.  the class name reflected the path to the class.

  • Report Row With Detail (IFRAME) - How to reload Main Page within iFrame

    Hi,
    Based on Carl's example - Report Row With Detail (IFRAME), i.e:
    http://htmldb.oracle.com/pls/otn/f?p=11933:17
    Within my scenario, I have a button within the iframe section of my report that calls a pl/sql process that performs some database processing.
    What I basically need is a means of performing a page refresh of the main page, when this button within the iframe is pressed. In Carl's example, that would be page 17.
    As mentioned, I call a PL/SQL process within the iframe, but unsure how to then refresh the main page - parent page.
    Any help would be appreciated.
    Thanks.
    Tony.

    Tony,
    you could insert the following script to the region footer of a region located on your "iframe"-page.
    <script>
    parent.location.reload();
    </script>
    But this is dangerous because everytime the parent is being reloaded, the iframe is loaded, too. Risk of loop...
    A possible solution is to conditionally display a html region (with the script) on your iframe-page basing on a request. You could post the request as a result after your plsql processing in a branch.
    Regards,
    Jens

  • Slow reloading issue with Safari 5.1.2/Mac OS X 10.6.8

    Hello,
    I am using Safari 5.1.2 on Mac OS X 10.6.8.   I encountered 2 serious problems:
    1. some web pages load real slow as slow as taking more than 2 minutes.  This behavor seems related to Javascript enabling.  If I go to preference/security to uncheck the "enable Javascript", then all page loaded instantly, but any page using Javascript to rander something will miss those things on the page.
    2. with the mentioned Safari/Mac OS, if I have multiple windows already openned, open or close one broswer window, all other window will reload or refresh, due to the slowness mentioned above, all window become white with reloading searchball rolling. I also followed other suggestion to set debug menu to uncheck the "use multi-process widnows", that causes frozen system issue.   Only when I start a new window from the debug menu item "use single-process Window",everything seems working fine but that is not desired.   I followed some internet suggestion to downgrade the Safari to 5.0.5, I also got the more serious system frozen issue after open some website like cnn.com. 
    Please let me knwo what is the best approach to resolve the 2 issue above.  Any help will be greatly appreciated.
    Thanks.
    Xiping

    Go to ~/Library/Caches/com.apple.Safari
    Move the Cache.db from the com.apple.Safari folder file to the Trash, restart your Mac, try Safari.
    If that doesn't help, try Safari in another user account. Same problems there, log back into your admin account, launch Disk Utility.
    That's located in /Applications/Utilities
    Select the startup disk on the left then select the First Aid tab.
    Click:  Verify Disk  (not Verify Disk Permissions)
    If the disk needs repairing follow the instructions for Using Disk Utility to verify or repair disks

  • How to increase height of IFRAME without refreshing its contents.

    Hi,
    I want to increase height of an IFRAME inserted in HTML,
    presently i am doing this by specifying
    var frameSrc = myFrame.src;
    myFrame.height = newHeight;
    myFrame.src = frameSrc;
    but as this refreshes the IFRAME i can see the time lag in the loading of page specified as src of IFRAME.
    Is there any better way to resize the IFRAME without reloading its contents.
    Thanks in advance.

    Why don't you add width and height where you had IFRAME tag?
    <iframe id="hiddenFrame" name="hiddenFrame" src="/myWeb/blank.html" style="width: 100; height: 300; visibility: hidden"></iframe>

  • JSP refresh from servlet.

    Hi everyone
    I'm creating a web application that is a combination of jsp pages and servlets.
    On one of the jsp pages I add contact details of a person in a form, then when submitted it goes to the servlet which adds the new contact into the database,
    after the servlet entered the data it redirects to the ContactList.jsp page, but it doesn't show the newly created user, I need to refresh the page manually to see the users.
    How can I from the servlet when I redirect to the ContactList.jsp page, refresh the ContactList.jsp page to show the newly created contacts well?
    Here is the servlet which gets called when I submit the jsp form.
    package contacts;
    import javax.servlet.*;*
    *import javax.servlet.http.*;
    import java.io.*;*
    *import contacts.*;
    public class NewContactServlet extends HttpServlet
         public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
              res.setHeader("Expires", "Tues, 01 Jan 1980 00:00:00 GMT"); //no cache allowed
              Contacts contacts = new Contacts();
              ContactsData contactsData = new ContactsData();
              contacts.setContactName(req.getParameter("contactName"));
              contacts.setCompany(req.getParameter("companyName"));
              contacts.setWorkNumber(req.getParameter("workNum"));
              contacts.setCellNumber(req.getParameter("cellNum"));
              contacts.setFaxNumber(req.getParameter("faxNum"));
              contacts.setEmail(req.getParameter("email"));
              contacts.setCountry(req.getParameter("country"));
              contactsData.addContact(contacts);
              res.sendRedirect("ContactList.jsp");
    }

    Hi manuel.leiria
    Here is my code for refreshing the jsp, it is working.
    Just tell me what you think, if it's the right way.
    The servlet that sets the attribute
              session.setAttribute("contactsSession","add");
              res.sendRedirect("ContactList.jsp");The jsp page that gets the page.
              <%
              String refreshSession = (String)session.getAttribute("contactsSession");
              if(refreshSession != null && refreshSession.equals("add"))
                   %>
                   <body onload="window.location.reload(true);">
                   <%
                   session.removeAttribute("contactsSession");
              else
                   %>
                   <body>
                   <%
              %>

  • Nokia 500 and Belle Refresh: browser issues.

    Greetings.
    The Belle Refresh was indeed a welcome refresh for this low-to-midrange phone. However, there is a serious issue with the browser.
    With the update to Qt 4.8, you inherited QtWebKit, an amazing browser I know very well. In a desktop, it's fast, although it eats more memory than Firefox. However, in a cell phone like the 500, with limited amounts of RAM, this browser freezes the phone, due to the lack of memory. I'm also sure this browser can and will break phones with more memory and Belle FPx, since I've made QtWebKit use more than 1 GB of RAM in a computer running KDE.
    There is a way to avoid this, called "user agent". Opera Mobile avoids this scenario by telling pages through user agent "hey, don't be hard on me, I'm browsing this from a cell phone", and pages adjust themselves to that scenario. However, you didn't tweak the user agent in your browser.
    If you add no user agent tweaking, full HTML5 support, Flash Lite support (the much higher specced iPhone 4S doesn't support Flash), and low memory, you get a nightmare scenario.
    1. The webpages send their complete, full featured DESKTOP versions to my Nokia 500.
    2. QtWebKit supports everything, so, it makes a faithful attempt to properly render the page, even with Flash apps.
    3. Nokia 500 has only 70-80 MB of RAM free for apps to use.
    4. Boom.
    Can you release a hotfix for Belle Refresh, changing the user agent of Nokia Browser to something that can trigger the mobile version of web pages? In that scenario, QtWebKit will eat much less memory and everyone will be happy. And please, can you do this for everyone using Belle Refresh?

    I can confirm serious browser issues with the Belle refresh on a C6-01 device. The crash is so severe that only taking out the battery helps. It typically occurs when scrolling larger, feature-rich (and image-rich) webpages, so far I've seen this only on mobile connections (Edge, Umts), but that may be due to lack of testing with WLAN. (Where I've got WLAN I've usually a more powerful device as well..

  • Restore, Refresh, reload Win 8.1 after hardrive in multiple similar Thinkpads

    All -
    This is the deal...
    Had a Thinkpad T-61 with partitioned Disk 0 into logical disks C: (System other stuff - no hidden partition), D: (disk images, data back up), E: reload programs and drivers. (WD SATA 320GB, 8 GB new RAM)
    System was drowned in unknown "goo" and was essentially DOA - no power, no battery indicators.
    Harddrive was swapped into my T-61p, and after doing a system enumeration, harddive proved to be uncorrupted (whew) - at least 12 hrs of config not blown, and data saved.
    New T-61 base purchased (virtually identical to old one), LCD screen swapped, and after putting original harddrive, went through new enumeration as , of course, machine now "looked different" and did the Activation dance for both Win 8.1 and Office
    2013.
    The problem - looking in the registry it looks like I have 3 different "hardware profiles".  However, "hardware profiles" with ditched starting with Vista.  What I find is the wireless card is now Card #2 (not 3 as mine was
    an Intel BGN, not a BG), Wireless devices at now Wi-Fi 3 (not Wi-Fi) as is appears machine thinks there are 3 different hardware profiles, although only one is real.  Looking at the Registry, it is clear there are multiple entries, I assume each time
    the harddrive was inserted for test purposes, and finally in the  repaired machine with new mobo, etc.
    Question - can these now "bogus" profiles be deleted or overwritten somehow to make this into a "clean machine".  In XP, this would have been  easy - get rid of the "obsolete" hardware profiles.  In 8.1 can one
    do this with a Restore, Refresh or, worst option (and I have done this) Reinstall 8.1 and everything else on the C: partition.  (Good thing - this is someone else Thinkpad with Office 2013, and maybe  10 other programs including utils, AV, and all
    data backed up; it's not mine, a T-61p used intensively as a development machine for Oracle, SQL-Server, MySQL, etc.)
    Fortunately, the Thinkpads seem to be indestructible (T-61), and not like the old company Toshiba's that they had a stack of 15 in various stages of rebuilds/repairs for which I burned a series compatible XP disk image that just required a data reload.
    Thanks in advance!!!

    Hi,
    System refresh would reserve user profile, it would be better to make system refresh to remove everything also contains User profile and settings, it equals to reinstall system.
    Since your person data already backed up, it would be better to make a system reset to clear these old profiles.
    You can refer to the contents below for more details about system refresh, reset, restore:
    http://windows.microsoft.com/en-us/windows-8/restore-refresh-reset-pc
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Auto refresh/reload of content in km navigation iview?

    We are using loads of km navigation iviews to show content from km folders or taxonomy folders. Some of these are placed  on the portals front page (company news for example). Since many of our employees log into our portal in the morning and then keeps it in the background during the day without refreshing the page, they miss out on new items in these iviews. This could also apply to display screens in our factories.
    Does anyone have a solution as to how make these iviews refresh at certain intervals?
    Henning

    Hi Henning,
    have you fixed this issue?
    Could you please share with me the details?
    Thank you.
    Gio

Maybe you are looking for