Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get Content-Type header in HTTP response with servlet in?

843841Mar 28 2006
Hi all,


I have writed a filter to modify HTTP response. In this filter, I want to get Content-Type header, but in servlet 2.3, I don't find a API to get it in HTTP response. I see in Tomcat's serlvet.jar, ResponseServlet class has a function : getContentType(), it also works well. But I want to deploy the filter on Sun Web Server 6.1, so I can't use this function. Does anybody how I can get the Content-Type header? Thans
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 25 2006
Added on Mar 28 2006
0 comments
167 views