aspose file tools*
The moose likes Servlets and the fly likes Setting the content type of Servlet to text/html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Setting the content type of Servlet to text/html" Watch "Setting the content type of Servlet to text/html" New topic
Author

Setting the content type of Servlet to text/html

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
I have a servlet that forwards/includes a JSP. I have set the mimetype of my JSP to text/html. Would it make any effect if I also make the response of the Servlet to text/html by using response.setContentType("text/html")? Thanks!


SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61233
    
  66

No, there is just one response.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting the content type of Servlet to text/html