I am facing a caching problem in the Web-Application that I've developed us

Dear Friends,
I am facing a caching problem in the Web-Application that I've developed using Java/JSP/Servlet.
Problem Description: In this application when a hyperlink is clicked it is supposed to go the Handling Servlet and then servlet will fetch the data (using DAO layer) and will store in the session. After this the servlet will forward the request to the view JSP to present the data. The JSP access the object stored in the session and displays the data.
However, when the link is clicked second time then the request is not received by our servlet and the cached(prev data) page is shown. If we refresh the page then request come to the servlet and we get correct data. But as you will also agree that we don't want the users to refresh the page again and again to get the updated data.
We've included these lines in JSPs also but it does no good:
<%
response.setHeader("Expires", "0");
response.setHeader("Cache-Control" ,"no-cache, must-revalidate");
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control","no-store");
%>
Request you to please give a solution for the same.
Thanks & Regards,
Mohan

However, when the link is clicked second time then the request is not received by our servlet Impossible mate.. can you show your code. You sure there are no javascript errors ?
Why dont you just remove your object from the session after displaying the data from it and see if your page "automatically" hits the servlet when the link is clicked.
cheers..
S

Similar Messages

  • Unable to deploy the web application that uses a ejb3.0

    Hi,
    I have created a adf application with Model and a ViewController.
    Locally from jdeveloper I am able to run the application successfully by right clicking the web page and click on Run.
    However, when I try to deploy this application that contains both Model and ViewController, I am getting an error:
    [04:41:52 PM] Weblogic Server Exception: weblogic.application.ModuleException: Could not setup environment
    [04:41:52 PM] Caused by: weblogic.deployment.EnvironmentException: [J2EE:160167]The module QC-ViewController-context-root in application QC_application1 uses ejb-links but no EJB modules were found for this application.
    [04:41:52 PM] See server logs or server console for more details.
    [04:41:52 PM] weblogic.application.ModuleException: Could not setup environment
    [04:41:52 PM] #### Deployment incomplete. ####
    [04:41:52 PM] Remote deployment failed
    Any help on this issue is appreciated.
    Thanks
    Saikrishna

    Hi Saikrishna,
    I had the same problem. My fix was to create a new Deployment Profile (EJB JAR file) in my Model (the default is an "ADF Library JAR file") and have my ViewController depend on that.
    Also, make sure your ejb references in web.xml have the ejb-link attribute:
    <ejb-local-ref>
    <ejb-ref-name>AuditSessionEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local>com.incomemax.ejb.session.AuditSessionEJBLocal</local>
    <ejb-link>AuditSessionEJB</ejb-link> <---- this entry
    </ejb-local-ref>
    Hope that helps,
    Chris

  • I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. Please help

    I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. I am accessing it via strong wireless connection and it works fine on other devices. Please help.

    zapgrap wrote:
    there is no information of locations.
    Then no information exists.  Use the Report a Problem button within the app to report it.

  • Facing lot of problems with the DATA object  -- Urgent

    Hi,
    I am facing lot of problems with the data object in VC.
    1. I created the RFC initially and then imported the data object in to VC. Later i did some modifications to RFC Function module,and when i reload the data object, I am not able to see the new changes done to RFC in VC.
    2. Even if i delete the function module, after redeploying the IVIew, results are getting displayed.
    3. How stable is the VC?
      I restarted the sql server and portal connection to R3 is also made afresh.... still i am viewing such surprise results..
    please let me know what might be the problem.

    Hi Lior,
    Are u aware of this problem.
    If yes, please let me know...
    Thanks,
    Manjunatha.T.S

  • Problems creating a web service that uses the report generation toolkit

    Hi,
           Im trying to develop a web service using labview 2013.
    I create a html form that is correctly communicating with my labview method and part of the web service functionality is to create a report from the data obtained in the html form published.
    I realized that using the report generation toolkit inside of the web service method the server cannot generate a report. ( If I run the same Vi before publishing the web service it works on the server but it doesnt work after I deploy it)
    I thought that maybe Im unable to use the report generation toolkit VIs inside of the web service because Im not incluiding the (dynamic VIs labview uses when they run), I tried to add the excel dynamic library to the proyect but with no success.
    I also tried to use VI SERVER to call a VI that generates the report using the report generation toolkit  in the method that runs when the web service is call but  it doesnt work either.
    How can I deploy a web service able to use  the report generation toolkit ?, how can I deploy a web service able to use VI server ?
    Any help is really appreciated.
    Erwin Franz 
    Erlab

    The issue you are running into is actually a limitation intended by Microsoft.  They don't want windows services to be able to call into the ActiveX interface for Microsoft Office for security reasons.  If you are deploying your web service to the NI Application Web Server on Windows you will run into this problem since the web server is a Windows Service.
    While I haven't tested this, you may be able to work around this by packaging your Web service with a LabVIEW EXE rather than deploying to the NI Application Web server. 
    Mark
    LabVIEW R&D

  • I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    Can you open the Preview program without loading a file, like by itself?
    If it doesn't load then I suspect a corrupt Preview preference file.
    Deleting the System Preference or other .plist file
    Can you open other files with Preview, like jpg's and images?
    How about other PDFs? or is it just that one you have downloaded?
    Run through this list of fixes
    Step by Step to fix your Mac

  • Hello, I have a problem with the iPod, is that the iPod does not sync all the songs that are on my Itunes. I have 373 songs on the iPod and iTunes 512 in ... What do I do?

    Hello,i have a problem with the Ipod,is that the Ipod doesn't sync all the songs in my Itunes. I have 373 songs in my Ipod and 512 sons in my Itunes. What do i do?

    Hello,
    I take it you haven't unticked any of the songs listed on your iTunes Library? Also have you tried selecting all your songs which you wish to add to your iPod, and dragging them over your Devices "iPod Nano"; and seeing if that copies all songs on to your iPod?
    Another idea is just check that your iPod has enough space for the rest of your songs to be added to your device.
    Hope this helps.

  • I have a MacBook Pro that I bought almost a year ago, next day problems with the hard disc that could not be diagnosed by the service, after 3 months they realized it and changed it with a new one, after 3-4 months heated and shut down and dont work anymo

    I have a MacBook Pro that I bought almost a year ago, next day problems with the hard disc that could not be diagnosed by the service, after 3 months they realized it and changed it with a new one, after 3-4 months heated and shut down by itself and dont work anymore. From apple say even a year has not passed it is not under garancy and I should pay to fix it without ans issue.

    I have a MacBook Pro that I bought almost a year ago, next day problems with the hard disc that could not be diagnosed by the service, after 3 months they realized it and changed it with a new one, after 3-4 months heated and shut down by itself and dont work anymore. From apple say even a year has not passed it is not under garancy and I should pay to fix it without ans issue.

  • PROBLEM: loading jaas.config in the web application

    Hi,
    my problem was load jaas.config in the web application, the way that I suppose was best it's to load a configuration file in the web.xml of my application, but I they are not a veteran of xml and I have a problem of implementation for this solution.
    I hope you know a solution of my problem because I was deprived of hope!
    HELP ME PLEASE!

    Hi,
    I hope that replay me on my new quesion.
    I have find a class "Configuration" that load a configuration file of jaas, but I don't understand how use it. Because I want pass it to LoginModule in the costructor.
    Can you help me with an example code?
    Thanks

  • I have a problem on the MUSE application. I changed my reference Saturday mail address. Since the operation, I can send my site project on Catalyst operating until then. A dialog box asking me to enter my password Adobe Business Catalyst I do not know . I

    I have a problem on the MUSE application. I changed my reference Saturday mail address. Since the operation, I can send my site project on Catalyst operating until then. A dialog box asking me to enter my password Adobe Business Catalyst I do not know . I fill the field with my Adobe ID without success. I then changed my password ID password , thinking the problem. Unfortunately it remains. What can I do? Thank you .

    Hi and Welcome to the Community!
    If you have BES, then you need to talk to your BES admin for the proper method to activate your BB on BES.
    If you do not have BES, then you should not even be going into anything related to Enterprise email...instead, you should see Internet or Personal email setup in addition to Enterprise. If you do not see Internet or Personal, then your device is not properly activated by your mobile service provider for BIS-level Internet/Personal email services...contact them for assistance.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • HT201210 I had problem my the new ipad that show notify to update but can not update that update page show blank page

    I had problem my the new ipad that show notify to update but can not update that update page show blank page

    Try updating from here:
    App Store>Purchased>Select All
    Note: You'll have to look out for apps with the "Update"

  • Error on hosting the web application

    Hi all,
    I am developing a web application using servlets and jsp's and has been deploying this application in Tomcat web server. But now suddenly i am facing some problems in starting the web application.
    When ever i start the Tomcat web server, the home page of tomcat is arriving and then when i go to any link in that home page, i am getting the following error.
    End of the Tag in the run method.
    java.sql.SQLEception:unable to connect to any hosts due to exception:java.net.NoRouteToHostException:No Route to host:connect
    **BEGIN NESTED EXCEPTION
    java.net.NOROUTETOHOSTException
    Mesage:No Route to host:connect
    ** END NESTED EXCEPTION**
    this is the error i am getting in the console program and i can't instantiate my web application. Can anyone suggest me a solution for this problem.

    I don't see applets mentioned in the supported features nor in the unsupported features so not sure if they are supported you would likely need to contact the operations team to confirm.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Problem deploying a web application (war)

    Hello,
    I am having a problem deploying a web application in Tomcat.
    Here is what happens:
    -I copied the war file into the webapps directory.
    -I started Tomcat.
    -Tomcat automatically expanded the war file into a directory of the same name.
    The problem is that I get the following error: "The requested resource (/jadmin) is not available." when I try to access my web application
    Can anyone please help?
    Thanks in advance,
    Balteo.

    Hi,
    check the Tomcat log file <tomcat_dir>/logs/localhost_log.yyyy-mm-dd.txt and see if there is an error corresponding to the deployement of the (/jadmin) context.

  • How to get the web application root ?

    Hi,
    We are developing a JSP/Servlets web application for Weblogic 5.1, that is distributed as a WAR archive, and so far we are unable to determine the web application root dynamically (from within the code in a Servlet or class). We tryed the servletContext.getRealPath("/") method, but it is not working due to the fact that we are deploying the application as a WAR file.
    We need to have this app root at the application startup, because it is widely used inside the JSP pages and the servlets of the web application. Also we would like to avoid setting it as a static parameter in the web.xml or elsewhere.
    Does anyone know how to do that? Any hint or suggestion is very much appreciated!
    TIA
    Stefan Buynov

    Thanks for your reply.
    As I said in one of my early posts, this variable (the application root) i used widely in the application (not only in JSPs, but also in classes).
    Another problem will be including JSTL in the project - first of all, I will have to put this tag where the variable is required (it will be quite exhausting), and also the specification of the application is strict - I might not be able to add this tag library, since the client won't like it.
    Anyway, thanks for your concern.
    Regards,
    Stefan

  • What is the proper way to deploy a Web application, that was developed in Visual Age for Java Professional edition 4.0 IDE, to iPlanets Web server Enterprise edition 6.0?

     

    Oh man it looks like a problem with the web server.
    Its an error that happens on SAP, even my dad reported an error like this to me but i wasn't able to solve it.
    What i find is that its an error with browser incompatibility,
    Check this http://scn.sap.com/message/10338540

Maybe you are looking for

  • In file adapter

    hi, In file adapterwe had an option "embedded scheduling option " .It is to schedule the file adapter.. In this what is the actual process goes on..mean whether it collects all files from sender and sends to receiver or it delivers eventually as it  

  • Violating Namespace Rules in Payment Medium Formats Customisation

    Hello I want to use the PMW to create payment medium files for Citibank.  I created the mapping in DMEE.  I called it Z_CITIPAYLINKPLUS.  Now I am trying to set-up the payment medium format in SPRO and I get the following message in the status when I

  • How to set 1inch margins on Pages program?

    I have Mac's writting program Pages and I am having a tough time trying to figure out how to set my document to have 1 inch margins. it is version 5.5.3

  • Error creating EO- The specified schema object is not an existng object

    hi, I am getting an error "The specified schema object is not an existing object .Please un check Exisiting Object or select an exisiting object" while creating an EO. Does any one knows how to get rid of it. Thanks, Murlai

  • Add server ip as allowed to all computers firewalls

    I need to allow a server to bypass all clients (win7) firewalls I would need to create a gpo under the computer configuration > Policies> windows Settings> Security Settings>Windows Firewall with Advanced Security > global Settings > Inbound Rules. u