what i want is open direcltly in a  new browser the WORD document?
---------- Initial Header -----------

>From      : [EMAIL PROTECTED]
To          : "Struts Users Mailing List" user@struts.apache.org
Cc          :
Date      : 26 Jan 2005 16:38:01 +0100
Subject : Re: redirectig to WORD files

> "[EMAIL PROTECTED]" <gdilem 'at' libero.it> writes:
>
> > Hi all I try to redirect my response to a word doc file.But after
> > setting contexttype and using response.sendRedirect(docWordURL) , I
> > get white page; What I want is open this word document on a click of a
> > link in a normal jsp.I call the action that has to redirecting me to
> > that file. Any idea? Regards
>
> Try
>
>         response.setContentType( "whatever_suitable_for_msword" );
>
>         response.setHeader( "Content-Disposition",
>                             "attachment; filename=foo.doc" );
>
> Then write to response.getWriter(). Worked for me.
>
> --
> Guillaume Cottenceau
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 



____________________________________________________________
6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to