tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, Gin" <Gin_C...@tvratings.com>
Subject RE: JavaScript
Date Tue, 06 Nov 2001 19:15:14 GMT
Actually I found it.
Set content type like this:
<%@ page contentType="attachment/vnd.ms-excel" %>
replacing the excel with ur file type of course.
or do a response.setContentType("attachment/vnd.ms-excel");
-Tim


-----Original Message-----
From: Chen, Gin [mailto:Gin_Chen@tvratings.com]
Sent: Tuesday, November 06, 2001 2:03 PM
To: 'Tomcat Users List'
Subject: RE: JavaScript


The second issue can be solved by setting the content type to attachment
(sorry.. i would offer more info.. but i forgot the exact format of it). I
dont know why ur having the first problem.

-----Original Message-----
From: Alvaro Seixas [mailto:alvaro_seixas@hotmail.com]
Sent: Tuesday, November 06, 2001 1:59 PM
To: Tomcat List
Subject: JavaScript


Hello all!

I'm having a litlle problem with javascript in my jsp pages: 
The first one is that I can't open a new window as html, just jsp. 
The second one is that  I wan't to put a file for the users download it. But
when I click the browser reads as a web page instead of ask you if you to
download it.

I'm using TC 3.2.3, Apache 1.2, win2k

Thanks,
Alvaro

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message