The reference you refer to is for upload, so I am a bit confused as you talk about download.
I assume you do mean download so:
To change the name that you are downloading you need to have a mapping to your download servlet so that you can use a request path like http://....../download/myFile.jpg then the browser dialog will show myFile.jpg. I am not sure how you'd acheive this with an Action Class, I'd look around creating a new mapping something like this:
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>/download/*</url-pattern>
</servlet-mapping>
Before anyone shoots me down, I am not at all sure this will work as it stands, but it is a starting point.
As far as the redirection after the download is concerned, you have a problem in that the browser is requesting the page and then doing nothing else. That's the way HTTP works :-(
You could experiment with using a refresh header tag in the page from which you launch the download, so that it refreshes every 5 seconds or so.
Hope the (slightly vague) ideas help.
Mike
At 17:28 21/11/2002 +1100, you wrote:
This is an old one but I have scoured the archives and not seen a definitive answer to my problem.
I am downloading a file via an Action class and want to refresh the Page display after the download completes. Now the action which should be forwarded to is not being executed. I have even tried to forward to a JSP rather than Action class but nothing seems to work.
This has been reported on more than one occasion eg:
http://nagoya.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]&msgId=154587
Never found a definitive answer.
Also the dialog box that IE pops up says that "you are downloading the file: <action class name> from localhost". This is misleading as the actual dialog box that is next presented correctly names the output file name that I have set up. How can I change the name of the file on the first dialog box ?
TIA
Eddie
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Mike Way, Senior Consultant, Shared Skills Ltd +44 (0)1752 491088, mobile +44 (0) 7941 225581 email: [EMAIL PROTECTED] web: www.sharedskills.com
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

