I could determine the filename in advance, but I think there should be some more
generic approach -- there are certainly situations where it won't be possible to
determine the filename in advance, and then I'll have to do something kludgey like
perform a URL rewrite, appending the extra path info. Does the setHeader call not
work because it isn't supported by the browser? I'm working with 4.5 of
Communicator.

Rogirio Meneguelli Gatto wrote:

> Cesar,
>
> Humm, that's a point.  You won ;-D.  We've used this technique here, but
> it was a always-same-name-but-different-content file to be imported by
> M$ Excel.
>
> Perhaps the application might decide the filename in advance?  I mean,
> it was necessary to decide (or query) the file ID previously, I suppose
> in a servlet, so couldn't the same be done for filename?
>
> []'s
> Gatto
>
> Cezar Totth wrote:
> >
> > Gatto,
> >
> > Yes, but using additional PathInfo to specify a file name has the drawback
> > that the servlet can't decide itself what that name should be.
> >
> > Cezar Totth                             email:  [EMAIL PROTECTED]
> >
> > On Wed, 24 Mar 1999, =?iso-8859-1?Q?Rog=E9rio?= Meneguelli Gatto wrote:
> >
> > > Scott,
> > >
> > > You can still put the extra path in the URL, like:
> > >
> > >         http://....../MyServlet/filename.zip?getFileid=3D1
> > >
> > > Unless you call Request.getExtraPath(), you won't even notice it ;-)
> > >
> > > []'s
> > > Rog=E9rio Gatto
> > >
> > > Scott Neufeld wrote:
> > > >
> > > > That could work in certain cases... However, I also have a situation wh=
> > > ere I'm
> > ................
> > <cut>
> >
> > ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to