Download window pop up in JSP..

Hi,

I have a link in JSP to download some data in CSV format. I am calling a different JSP upon click of this JSP which shows download window. I am doing this with the help of setting different headers of responce (imlicit object in JSP). Code snippet is given below :

<%

response.reset();

response.setHeader("Connection","keep-alive");

response.setHeader("Content-Type","application/csv");

response.setHeader("Accept-Ranges","bytes");

response.setHeader("Content-Disposition","attachment; filename=" + "DownloadActivityLogs.csv");%><%= "Date/Time" %>,<%= "User" %>,<%= "Activity" %>,<%= "Description" %>,<%= "Lodgement ID" %>

when i click link and download window comes up. now the problem is when i cancel it and comes to main screen and now if i click on some other link same download comes up (as if it is in cache). And if i click on some link second time m session expires and says 'Invalid parameters passed'.

Please let me know if somebody have any hint.

[1070 byte] By [kapil_ba] at [2007-10-2 21:35:15]
# 1
dont try to set the header just use jsp:forword to send your respose to download page..........
Jimmi_S_Prajapatia at 2007-7-14 0:49:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
I can't, there is a well defined architecture which handels forwarding the control to some jsp. All i can do is provide the jsp name is a xml. Servlet reads that xml and sends the request to desired jsp. is there any other way...
kapil_ba at 2007-7-14 0:49:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...