tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Micael Padraig Og mac Grene <>
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?
>To unsubscribe:   <>
>For additional commands: <>
>Troubles with the list: <>

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message