File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
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
Sheriff

Joined: Aug 03, 2008
Posts: 9302
    
  17

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://aspose.com/file-tools
 
subject: I am getting old file from the server