tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Micael Padraig Og mac Grene <caraun...@harbornet.com>
Subject Re: Finding the content type from within a JSP
Date Tue, 12 Feb 2002 16:09:05 GMT
I can tell you that it is on a jsp page.  What else would it be on?  Maybe 
you are thinking about a response object, which has 
setContentType??????  Your question probably makes sense but I cannot see 
what the sense is.

At 06:57 AM 2/12/02 +0000, you wrote:
> > How can your tags not know that type they are generating?  I don't
> > understand that.
>
>And I would like to understand how they can know which type they are
>generating.  Could you possibly show me how to write a very simple tag
>which simply prints out the content type of the page it is on?
>
> >From what I can tell, the only way they can know is if I create a
>filter which puts a "contenttype" attribute in the request object.
>Unless there are other sugestions this is what I'll do.
>
>Thanks!
>
>--
>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