tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sgarlata Matt" <sgarlata_m...@bah.com>
Subject Re: Setting contentType and also using container-based authentication
Date Fri, 12 Sep 2003 13:12:08 GMT
I must have been losing it yesterday because I tried again just now with <%@
page contentType %> and it worked fine.  If I have more problems I'll try
that <meta> trick; I didn't know about that.

Thanks Adam!

Matt
----- Original Message ----- 
From: "Adam Hardy" <ahardy.struts@cyberspaceroad.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Friday, September 12, 2003 4:36 AM
Subject: Re: Setting contentType and also using container-based
authentication


> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


Mime
View raw message