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" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -- 
> struts 1.1 + tomcat 4.1.27 + java 1.4.2
> Linux 2.4.20 RH9
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to