Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Content type declaration question  RSS feed

Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any reason I should be concerned about a jsp file that contains a content type definition meta tag? Kind of a strange question, I know.

As an example, say I write a jsp and save the source file on my PC in one encoding. I then upload the JSP to a server.

Is it possible that the server may actually send the response to the client encoded differently than the source file is? If so, does pose any risks? Thanks.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!