Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sendRedirect question

Status
Not open for further replies.

blevy9

Programmer
Apr 22, 2003
16
US
I am using sendRedirect method to send to client the file, created on the Server side:
response.sendRedirect(ls_filename);
where ls_filename - it is report, which is created with different arguments, it saved as file in server directory.
When file name is changed, it works fine, client browser display a new report. But when file name is the same, but report is created with another arguments, client browser display the previous report with old arguments, though in server directory was saved a new report with new arguments as ls_filename.
May be I need to refresh response headers to let client browser to display a new report? How to do it?
 
Are you sure the two "files" with the same name - that the second file is actually overwriting the first ?
 
Yes, the two files have exactly the same name - that the new file actually overwriting the previous and replaces the previous file in server directory. But a new file was created with another arguments, than previous.
When I using sendRedirect method:
response.sendRedirect(ls_filename);
to send a new file to the client side, Client Browser display the previous file, which was created with old arguments, though in server directory the file was replaced and saved with a new arguments.
May be I need to refresh server each time after using sendRedirect method, but I don't know how to do it from JSP script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top