Does anybody knows how to how to find out what content a document contains,
a file or HTML?

Michael 


---
___ Michael Duale | Java Consultant
___ Cell Network AS    | P.O. 5313, N-0304 Oslo, Norway
___ Tel: +47 23196600  | Fax: +47 23196601 | Mob: +47 48153458
  http://www.cellnetwork.com/ | mailto:[EMAIL PROTECTED]



-----Original Message-----
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: 14. august 2001 19:13
To: [EMAIL PROTECTED]
Subject: Re: Downloading a file from a action class




On 14 Aug 2001 [EMAIL PROTECTED] wrote:

> All,
> 
>     I am curious if anyone has written an action class that will
> download a file to the browser.  Not have the browser open a file, but
> have the download box popup everytime after a action.  I know how to
> set the header information and mime type, but what do you return for
> the ActionForward.
> 

For this purpose, you will need to actually *do* the download in your
Action.  Then, you return null instead of an ActionForward instance.  This
tells Struts that you have already handled the response so that it does
not need to.

> Thanks
> 
> Jeff Krueger
> 
> 
> 

Craig

Reply via email to