Hi. I've want to make a servlet that can display the source of any jsp/html file (not the rendered one).
Basically my code is like this: *set content type to text/plain *get PrintWriter object out *get the fileobject as an inputstream *write to the out object *flush/close The code is working fine, but viewing the servlet execution in a browser, the content type is set to text/html which means that all tags are not displayed (hidden). How can I override this behavior. If I read a text file everything works fine. But if the file begins with an <html> tag, the contenttype is set to text/html. Is this a browser problem? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
