I have the following file download code that I am trying to create a method out of:
This works but I need to somehow create one method from this all or create a method from the 6 lines of code:
I need to be able to call this method from an onClick event so that the download dialog box is activated when the user clicks on a button. TIA!
Joined: May 09, 2003
Joined: Aug 28, 2003
So theres no way to prevent this code from running onLoad? Basically If I have the code on my jsp the download dialog box opens as soon as the page loads(which I dont want). Is there not a way to call this method on demand within a jsp? Thanks!