This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 60810
    
  65

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
 
Similar Threads
assign html input text box value into jsp var
Jsp website
is servlet and jsp same?
how to save jsp report to the text file
csv with jsp