This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSP and the fly likes Page directive Doubts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Page directive Doubts" Watch "Page directive Doubts" New topic
Author

Page directive Doubts

Mohammed Yousuff
Ranch Hand

Joined: Oct 17, 2007
Posts: 198
<%@ 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

My Thoughts : http://passion4java.blogspot.com
Try not to become a man of success but rather to become a man of value.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Page directive Doubts