File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Setting the content type of Servlet to text/html
Joined: Sep 18, 2005
Feb 22, 2007 02:38:00
I have a
that forwards/includes a
. 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!
Author and ninkuma
Joined: Jan 10, 2002
Feb 22, 2007 09:44:00
No, there is just one response.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Setting the content type of Servlet to text/html
is servlet and jsp same?
how to save jsp report to the text file
assign html input text box value into jsp var
csv with jsp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015