File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Page directive Doubts

 
Mohammed Yousuff
Ranch Hand
Posts: 198
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>

I like to know what the difference between attribute pageEncoding and contentType is. Both almost serves the same purpose, is there any real advantage in using charset inside contentType if we already have the pageEncoding attributes added to tag....

I also have doubt if we include pageEncoding in the page directive, will Web Container will automatically added the HTML META content tag (<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />) by itself? if not then what is the use of specifying in the page directive. Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic