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 06:29:45 GMT
How can your tags not know that type they are generating?  I don't 
understand that.

At 06:04 AM 2/12/02 +0000, you wrote:

>I have an interesting question.  I can see that there is a
>ServletRequest.setContentType(String) method which would let me set
>the content type, but from what I can tell, there is no corresponding
>get method.  This seems very strange.  I want some of my jsp tags to
>generate different content depending on whether they are generating
>html, wml or plain text, so I need to know the content type.  Is there
>a way to find it out?
>
>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