tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ramien E. Rosillo G. <>
Subject Tomcat 4.1/java a xml file from a server
Date Fri, 14 Jan 2005 12:53:52 GMT

<BODY oncontextmenu="return false" dir=ltr style="OVERFLOW-Y: scroll" leftMargin=0 topMargin=0
rightMargin=0><DIV id=wrteplaceholder style="FONT-FAMILY: Arial" name="wrteplaceholder">
<DIV><PRE>Hi guys,<BR><BR><BR><BR><BR><BR>I
have a JSP applicaction using tomcat 4.1 wich is accesed from internet using an IIS server
for the redirection.<BR><BR>In my servlet I'm generating a XML file wich will
be downloaded by the client, in the servlet I set up this header, <BR>like in the others
forums some fellows told.<BR><BR>response.setHeader("Cache-Control","no-cache");<BR>response.setHeader("Pragma","no-cache");<BR>response.setDateHeader
("Expires", 0);<BR>response.setContentType("application/octet-stream");<BR>response.setHeader("Content-Disposition",
"attachment;filename=\"" + nombreBorrador + "\"");<BR><BR>I'm having a problem
downloading a file from a server, the download dialog box says in the filename the <BR>name
of the servlet instead of the name of the XML file.<BR><BR>Any comments will be
really appreciated.<BR>Best Regards <BR>JCh.-</PRE></DIV></DIV></BODY><hr><div
style="background-color:white;color:black;">Walla! Mail - <a href=""
style="color:blue">get your free 1G mail today</a></div>
  • Unnamed multipart/mixed (inline, None, 0 bytes)
    • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message