• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I am getting old file from the server

 
Rahul Ashar
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9528
32
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic