----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi there,
I am developing a WEBMail servlet and have a problem with file
attachments.
I return the contenttype of the file and then send the type via the res
outputstream.
The problem is that when the browser pops a dialog to save the file, the
name of the file is the name of the servlet.

The call:

/servlet/tpservlet?acc=savefile&name=file1.jpg

makes the broser to save the file under "tpservlet" name.


How can solve this?
A sollution could be a apache/jserv URL alias that might make the
browser take

/servlet/tpservlet/filename.jpg?acc=savefile

and execute as if it was

/servlet/tpservlet?acc=savefile&name=filename.jpg

--

Thanks and greetings from Madrid.,
Ignacio de Córdoba
SKIOS / TUPORTAL.COM




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to