How to get Content-Type header in HTTP response with servlet in?
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