tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: Setting contentType and also using container-based authentication
Date Fri, 12 Sep 2003 08:36:16 GMT
Hi Matt,
how does it work if you use a meta tag direct in html?

<meta http-equiv="content-type" content="application/vnd.ms-excel" />


On 09/11/2003 07:54 PM Sgarlata Matt wrote:
> I'm having trouble using the <%@ page contentType="" %> directive and
> container-based authentication.  Here is a toy example that works great
> without container-based authentication but does not work with c.b.a.
> enabled:
> 
> <%@ page contentType="application/vnd.ms-excel" %>
> <%
> response.setHeader("Content-disposition", "inline;
> filename=\"myreport.xls\"");
> %>
> hello
> 
> The desired behavior is that the text "hello" displays in Excel.  Has anyone
> ever run into a problem like this before?  I am using tomcat 4.1.27, and
> Tomcat's built-in DataSourceRealm (which has been working for me fine).
> 
> Thanks,
> 
> Matt
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


Mime
View raw message