aspose file tools
The moose likes JSP and the fly likes I am getting old file from the server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "I am getting old file from the server" Watch "I am getting old file from the server" New topic
Author

I am getting old file from the server

Rahul Ashar
Greenhorn

Joined: Apr 01, 2007
Posts: 20
Tools Used :
Websphere Application Server 6.0
AS/400 v5r4
DB2 UDB

I am working on the web project which includes the reports to be generated in pdf format.
I am using RPG ILE programm to generate the report, which generates the real time report
and over write it into a specific folder (Library on AS/400) . Users access these files using
a jsp page with the help of various links to these pdf reports.
The first report generated can be fetched by user correctly. However, when user clicks the link with other searh parameters, it shows same old pdf file while the file on server is ovr written by the program.

I have added following code to jsp to remove file from the buffer

Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9189
    
    2

I have added following code to jsp to remove file from the buffer


Which JSP?? Did you add these lines in the JSP where the links are?? If yes than this might not work. You should set these headers in the servlet that generates the PDF file i.e. in the response that returns the PDF file...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: I am getting old file from the server
 
Similar Threads
invalidate session object in struts2
JNLP downloads from JSP page
Problem in opening multiple browser
Caching Problem with JNLP
Response as PDF