Theoretically it should be controlled by
Content-Disposition header
ftp://ftp.isi.edu/in-notes/rfc2183.txt
But we never know with MS products...
from experience I know that
response.setHeader("Expires", "0");
response.setHeader("Cache-Control",
"must-revalidate, post-check=0, pre-check=0");
response.setHeader("Pragma", "public");
response.setHeader("Content-Disposition",
"attachment; filename=\"" + fileName +"\"");
causes browsers to offer save/open dialogs.
--- Patrick Casey <[EMAIL PROTECTED]> wrote:
>
> If I recall the MS browsers do one of two things:
>
> If the content is application/ms-excel --> display
> in browser
> If the content is anything else but it ends in .xls
> -> launch excel
> separately.
>
> It's something along those lines although my memory
> may be a bit off
> on the specific content type flag you have to set.
>
> --- Pat
>
> > -----Original Message-----
> > From: Shalini Goel
> [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, September 27, 2005 9:13 AM
> > To: Tapestry users
> > Subject: help needed to display excel reports
> >
> >
> > Hi
> >
> > I am working on a tapestry application. I need to
> open an excel document
> > in the browser where I am sending the file name
> and path.
> >
> > Is there any component that can be used for so.
> >
> >
> >
> >
> > Its relatively very easy to display excel
> documents using spring
> > framework but I am not able to get to make it
> working in tapestry.
> >
> >
> >
> >
> > -shalini
> >
> >
> >
> >
> >
> >
> > **************** CAUTION - Disclaimer
> *****************
> > This e-mail contains PRIVILEGED AND CONFIDENTIAL
> INFORMATION intended
> > solely for the use of the addressee(s). If you are
> not the intended
> > recipient, please notify the sender by e-mail and
> delete the original
> > message. Further, you are not to copy, disclose,
> or distribute this e-mail
> > or its contents to any other person and any such
> actions are unlawful.
> > This e-mail may contain viruses. Infosys has taken
> every reasonable
> > precaution to minimize this risk, but is not
> liable for any damage you may
> > sustain as a result of any virus in this e-mail.
> You should carry out your
> > own virus checks before opening the e-mail or
> attachment. Infosys reserves
> > the right to monitor and review the content of all
> messages sent to or
> > from this e-mail address. Messages sent to or from
> this e-mail address may
> > be stored on the Infosys e-mail system.
> > ***INFOSYS******** End of Disclaimer
> ********INFOSYS***
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
Konstantin Ignatyev
PS: If this is a typical day on planet earth, humans will add fifteen million
tons of carbon to the atmosphere, destroy 115 square miles of tropical
rainforest, create seventy-two miles of desert, eliminate between forty to one
hundred species, erode seventy-one million tons of topsoil, add 2,700 tons of
CFCs to the stratosphere, and increase their population by 263,000
Bowers, C.A. The Culture of Denial: Why the Environmental Movement Needs a
Strategy for Reforming Universities and Public Schools. New York: State
University of New York Press, 1997: (4) (5) (p.206)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]