1 Reply Latest reply on Mar 26, 2012 5:42 AM by jfclere

    JBoss automatically generate HTML tags for a plain text file?

    it.mjjiang

      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">

       

      <html>

          <head>

       

              <title></title>

             

          </head>

          <body>

              google-site-verification: googleabc.html

          </body>

      </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!