Opera browser caches .jsp pages

Opera caches .jsp pages.
This is serious and very annoying because it means that even if I click on the link that leads to the .jsp page I don't see a page with the current situation, but an older one.
I know that you just use pragma, no-cache etc. in the page to stop caching, but if you use that solution, it also means that you can't use the back button because you won't find the page anymore.
What I want to do is to say, if the browser is Opera, don't take the cached page, make me a new one.
Anyone know how to force it not to take a cached page?
Any help appreciated.

Are you sure it is Opera, and not a Proxy? We had a problem that looked like the browser but was actually the proxy (because the user that reported it was the only person behind the proxy). At any rate, we handled proxy caching AND browser caching using fake URLS. E.G., When we had a page like http://site/page.jsp that could not ever be cached, we added a bogus parameter that was guaranteed to be unique: http://site/page.jsp?bogusParam=1AFFSDD2. That way the URL was never the same twice and even if the browser or proxy cached it wouldn't matter. Another option if you are using a servlet is to use the path:
http://site/myservlets/servlet
becomes:
http://site/myservlets/1AFFSDD2/servlet
and you just map that servlet to myservlets/*.
More hassle, but at least it is workable.

Similar Messages

  • How to disable a JSP page caching?

              Hello there,
              How do I can disable a JSP page caching? This is becoz when the first time i ran
              a EJB calling from a JSP, it works, but after the second time, it unable to call
              the same EJB again, I double check the console and the database, the same records
              does not appears after the second calling, i suspect is caching problem.
              TQ
              Neo
              KL
              

    Neo, wls does not cache jsp page by default. We do have a custom tag for
              it as you can see here
              http://e-docs.bea.com/wls/docs61/jsp/customtags.html#overview.
              Regards,
              Joseph Nguyen
              BEA Support
              "Neo" <[email protected]> wrote in message
              news:3d4a428d$[email protected]..
              >
              > Hello there,
              >
              > How do I can disable a JSP page caching? This is becoz when the first time
              i ran
              > a EJB calling from a JSP, it works, but after the second time, it unable
              to call
              > the same EJB again, I double check the console and the database, the same
              records
              > does not appears after the second calling, i suspect is caching problem.
              >
              > TQ
              >
              > Neo
              > KL
              

  • Caching JSPs and images...

    I have recently started using pragma's to stop the browser caching jsp files:-
    response.setHeader("Pragma","No-cache");
    response.setHeader("Cache-Control","no-cache");
    response.setDateHeader("Expires",0);
    But will that stop the browser from caching images associated with the page ? I have a background image, which whilst not large, would cause alot of additional bandwidth consumption if it had to be downloaded with every jsp page request.
    Thanks.

    To be honest with you, the browser decides.
    The specification states that if you decide to refresh a web page, the browser should first check to see if there's a new version. If there have been no changes, it should use the version that's already in your "temporary files". The no cache directive is supposed to tell the browser not to bother checking, but go ahead and download the web page again.
    This applies for everything that's on the page. So yes, it would download the background again.
    However, I image that some of the latest generation browsers (such as Opera, Konq, Mozilla and Safari) bend the rules slightly. They recognize that an image is a background image because it's in the body tag, likely to be repeated throughout an entire site, and thus always checks for a new image regardless of whether you cache it or not.
    No cache is just a suggestion, not a requirement. If you're developing in a corporate workspace where everyone is using IE (for example), then I would go ahead and just test it.
    Keep in mind that if your JSP page has to dynamically generate content (usually by accessing a database), then the Servlet Engine always informs the browser that it is a new page. You don't need need to specify no cache in order to get the browser to always look for the most recent version.

  • Opening a new browser from jsp

    Hello All,
    I have a requirement in which i have to open a new browser when i click on a Submit button.
    In that browser a specific URL should run and then that browser should be closed.
    Does any one have any idea how to open a browser from jsp page?
    Thanks in advance

    You would need to use javascript, in firefox this would opena new tab, in IE it would open a new window. Google for window.open and you should find some examples of how to do this.

  • When I publish my site on one specific page where i've added {tag_pagecontent} I get the error:Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.

    When I publish my site on one specific page where I've added {tag_pagecontent} I get the error:
    'Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.'
    I'm trying to get a blog module going, I've even deleted the html insert bog with the tag in and re-published which then I don't get the error but as a result no blog either. But then I add the tag in again and publish the error comes back. I've used the dev console and it says that my musicians sample.css is out of date but why is it only out of date when I add in html to my muse site?
    HELP!!!! I've searched other threads and to no avail I'm publishing so no direct ftp going on. the only thing I changed in business catalyst was the module stylesheet in order to style the blog. I've tried uploading and replacing all files nothing seems to work. the site is here:
    http://www.musicstudentsforhire.co.uk/musicians-samples.html
    It's only this page as it has the blog on. Also I've noticed when I've re-published occasionally it will show the mobile version on my desktop and not the desktop version??? no idea why that's happening so I've had to turn that off. any explanation on why that is happening would also be much appreciated.

    I haven't received an answer as of yet, I'll post t on here when I do. I de-activated the mobile site because it's my clients site so he needs it to be operational during the day. I hope someone gives me an answer soon.

  • Conditionally opening a new browser window from a JSP page

    When the user clicks on a button in my JSP page, I'd like to launch a new browser and display certain things in that browser window while leaving the original browser window open. The new browser should only be displayed if certain conditions are met.
    My thought was to invoke a javascript method in 'onLoad' which would determine if the new window needs to be launched.
    This is kinda what my page looks like:
    <jsp:root version="1.2" ................>
        <jsp:directive.page import="java.util.*, com.test.Configuration" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
         <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow();">     
         </ui:body>
       </f:view>
       <script type="text/javascript">
            function launchWindow(){
             if (Configuration.openWindow()) {
              window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
        </script>     
    </jsp:root>
    My problem is that the call to "Configuration.openWindow()" does not resolve correctly. If I remove that call and simply make a call to "window.open()" all works. But once I put the condition in, nothing happens. I do not see an exception in my browser window but a new browser window does not open.
    Is my syntax correct. Can I make a call to the static method 'openWindow()' in my class 'Configuration.java'.
    I posted this same query on the JSF forum but received now replies. My question is more suited to the JSP forum and hence I'm posting this question here.
    thanks,
    tsc

    I have made some changes so that I do not directly access the 'Configuration' class in my javascript.
    I have a hidden field on my form and when the user clicks the button, in my back bean, I set a value for the hidden field. In the javascript function 'launchWindow()' I check if a value has been set for the hidden field and if yes, I open a new window.
    <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow(document.forms[0]);">
    <h:inputText id="hiddenField" value="#{formBean.hiddenValue}" />
    <script type="text/javascript">
            function launchWindow(form){
                alert("in lw");
                var test = form["form1:hiddenField"].value;
                alert("got test");
                if (test !=  "")
                    window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
                alert ("done test");
    </script>When my page is first loaded, the launchWindow() is called and all the alerts popup as expected.
    When I click on the button (the back bean sets the value on the hidden field), my page is reloaded but this time its blank.
    Any ideas as to why this maybe the case?
    thanks,
    tsc

  • How to open a new browser window from a JSP page?

    Hi,
    I am picking up records from the database and displaying each record in a seperate text area field using the JSP code. I should be able to display the content ( available in the text area) in a seperate window if the user clicks on one icon.
    Is it possible to open a new browser window using JSP? If yes, how can I write information on the new browser window?
    Thanks in advance.

    Is it possible to open a new browser window using JSP?a JSP page is also an HTML page, this is client side stuff, you can do it with JavaScript.

  • How Can I speed  up the results on my JSP page with the help of Caching.

    I am generating a dropdown listbox by merging an xml file with a style sheet(xsl).
    This list box comes up fine without any problems. Now, I am adding some advanced
    logic to the
    style sheet (xsl) to use the same xml file in a more efficient way. This time
    the generation
    of the list box is taking much longer (upto 25 seconds) although I get the results
    I want.
    Is there any way I could speedup this process by using weblogics caching. I know
    the process is slowing down
    due to the code in the stylesheet. Will caching resolve this issue?. I tried
    using
    <wl:cache> </wl:cache> on the jsp page generating this listbox but found no improvement.
    Any help will be very much appreciated.

    turn off your phone, unplug your router, leace it off for 30 seconds, and then power it back on and turn the iphone back on

  • Printing a web  page from the browser using JSP

    Hi sir,
    I want to know how to print a webpage that contains some
    report data where the web page contains a button as well when i click the button only the webpage contents(report data) should be send to the printer and should be printed.Here i should not use any javascript.By using pure java code in Jsp i need to do this.Pls.provide the code for this so that i will be grateful to u.Where it is very Urgent.I will be waiting for ur reply.
    Thanx,
    m.ananthu

    If you are reasonable sure that the user will be using a newer browser you could use the <LINK> tag to set an alternative print page. When the user clicks on the print button it calls a javascript funtion that does a window.print function call. The browser will then request the alternative print page and print this page instead of what is in teh browser.
    This will require two JSP pages but with proper use of includes you can reuse the code.
    Sorry I don't have any examples handy so you'll have to search the web but I know it works because I've done it for an intranet site.

  • Tomcat 4.1.24 : JSP page displayed blank in browser

    Hi,
    I am facing a problem where a blank screen is displayed to the user in browser even though the JSp page is getting executed successfully on my Tomcat server. The application and catalina logs show no errors / exceptions, still blank screen is displayed to the user sometime. If the user clicks on browser back button, the request is processed again and the page content is displayed properly.
    I am using JDK 1.4.2_09 with Tomcat 4.1.24 on Windows 2003 server.
    Is it to do with JSP:Forward mechanism? I forward the request from one JSP to second JSP and this second JSP gets executed on server but shows blank screen.
    Requesting for help.
    Thanks in advance.
    Thanks and Regards,
    Amit Paliwal

    Hi Alisha ,
    Thanks for reply. I can not put any debug message at online page,my problem is that i can not simulate the same senario at my development site.
    Amit Paliwal

  • How to implement content caching for jsp page ?

    Hello everyone,
    I am reading an article <Servlets and Jsp Best Practice>,at
    http://developer.java.sun.com/developer/technicalArticles/javaserverpages/servlets_jsp/#author, on one section it is saying :
    "Cache content: You should never dynamically regenerate content that doesn't
    change between requests. You can cache content on the client-side, proxy-
    side,or server-side. "
    Now I am working on a project. For every user, some of the content servlet generated will be the same for at least a week . I am thinking if I implement caching for these jsp pages, that would increase performace a lot.
    But I have no idea how to implement it either client-side or server-side, can someone give me a hint ?
    Thanks,
    Rachel

    You mean actually you are caching the response stream
    and the key to distinguish between different response
    streams are made of user's different request
    parameters. And the filter's function is to intercept
    the request to see if this request parameter's
    combination already exists in the Hashmap,then either
    use the cached response or forward to
    servlet.....really interesting...Do I get it right ?Yes that's it in a nutshell.
    >
    Then how do you build those response streams in
    advance ? You did it manually or have some mechanism
    to build it automatically ?
    The data gets cached the first time somebody visits the page.
    Find some examples on Filters, and take a look at the HttpServletResponseWrapper class. You need to cache response headers as well as the body. Another pitfall that you might run into is handling an If-modified-since header on the request. Don't cache the results of those requests.
    -Jonathan
    >
    Thanks again !
    Rachel

  • Open the new jsp page in new browser

    Hi All,
    I have the requirement to open the new jsp page in the new browser when will we click on the link in my parent page.Is it possible with golink?If yes please give me an example otherwise please suggest me how to do this.
    I'm using jdev 11.1.1.5 version.
    Thanks in advance!

    Hi,
    yes with golink it is possible.I tried with below code
    <af:goLink text="JSP-LINK" id="pt_gl1"
    destination="AuditLogInfo.jspx" targetFrame="_blank"
    inlineStyle="background-color:#99CCFF;color:Blue;"
    visible="#{row.bindings.Status.inputValue=='SUCCESS'}"/>
    It is working.Thq.
    Edited by: 851924 on Apr 5, 2012 11:49 PM

  • Jsp syntax for avoiding caching of pages at client

    how can we avoid a jsp page from caching
    which is so in ASP
    response.expires
    what is that in jsp

    If you are using Apache as your WebServer look at
    http://httpd.apache.org/docs/mod/mod_expires.html
    You can solve the caching problem by adding
    ExpiresActive On
    ExpiresDefault "access plus 1 second"
    to the Apache httpd.conf file
    null

  • How to get fresh jsp 'page' rather than from cache?

    Hello
    I am using about 5 jsp pages. some of the jsp call other JSPs. When a jsp calls another jsp (by button clicking), the target jsp opens but it does not shown the fresh contents. I have to make it fresh by clicking the fresh botton of IE explorer. How can I get fresh jsp when it is called from another jsp? Will be grateful for any help.
    I am using IE5 and tomcat4.0

    You need to tell IE not to cache your pages. For IE 5 something like this should work:
    <HTML>
    <HEAD>
    <TITLE>---</TITLE>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="-1">
    </HEAD>
    <BODY>
    </BODY>
    <HEAD>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="-1">
    </HEAD>
    </HTML>

  • JSP page open a web link in a new browser

    How i can open a web link from JSP page to a new web browser?
    regards,
    deemy

    How i can open a web link from JSP page to a new web
    browser?JSPs can't open any client browser windows, if that's what you mean. Javascript and HTML can, though. You should get your understanding of JSPs straight.

Maybe you are looking for

  • Storage repository for GOS attachments outside R/3

    Greetings! For our requirement we have to extract and store GOS attachments in a DMS server. I would like to know what are all the possible soutions to store the data outside R/3 (our users will not accessing them everytime but just to have reference

  • Help with apple script for Chapter Markers (on each edit)

    Hi, My goal: Add for each edit in the sequence a chapter marker til the end of the sequence. (Bonus track would be: Name the marker like the current clipname ) so far I could work it out, with a lot of googling.... but: Not working: character "a" is

  • How would I transfer my songs from my old pc to the new mac?

    Some are songs that I downloaded onto my old pc so how would i make them appear on my iTunes on the new mac? Right now, only some random songs are listed under my music

  • Some users getting 2 task notifications from SPD workflow

    Hi, I have created a SPDesigner Workflow in SharePoint 2013 Ent, using the SP2010 workflow engine as it is a fairly simple process. The odd thing is that for one particular user, when a Task is assigned, she gets 2 notification emails: email1:    "Ta

  • HLP!!!!!!!!

    My iphoto doesnt open it says its damaged or incomplete???, My iphoto doesnt open it says its damaged or incomplete???