1 Reply Latest reply: Mar 26, 2012 5:42 AM by Jean-Frederic Clere RSS

JBoss automatically generate HTML tags for a plain text file?

Michael Jiang Newbie

I saw sth weird. I downloaded a google site verification file, wiz a plain text file but named as a html, "googleabc.html", it contains only one line of text like the following:


google-site-verification: googleabc.html



So, if you go to the server and download (ftp) the file, you will see only this line of text. But via http, if you go to a web browser, or do a telnet get or curl it, you will see the text is wrapped in a complete set of HTML tags like the following:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">









        google-site-verification: googleabc.html




which means JBoss adds HTML tags to the text file before it renders it back? Is that the case and how to turn it off?


Any idea? Thanks!