Dear friends,
i am occuring probelom while downloading file through
servlets following are the steps i have done...
Step 1)get the filename
Step 2)Set the header as content-disposition
Step 3)after this save dialog opened and the control is given to saving the file
my question is how can i track the download?
ie..,Tracking Download, like completion of download
following is code that i have used
if((sContentType != null))
{
response.setContentType( sContentType );
response.setHeader("content-disposition","attachment; filename="+sFileName);
try{
while( (iTemp = dis.read( bData ) ) != -1 )
{
out.write( bData , 0 , iTemp );
out.flush();
}
}catch(Exception e)
{
System.out.println("Exception :- " + e);
}
}
while performing the operations file downloading ,it takes control and after downloading operations i redirected to new
JSP page...
but ITS not GOING to next page...
provide me the solutions
or is any alternative solutions is there
Note:
MIME Type is set in web server
Thanks in advance
cheers
vasu