Title: Difference between html meta tag and jsp page directive

What is the difference of specifying a characterset in the page directive compared
to the html meta tag. The reason is that I want to define the character set at run-time
using a configuration file.

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=Windows-874">

<%@page contentType="text/html; charset=windows-874"%>

In addition I have configured server.properties to include servletexec.request.params.charset=windows-874.
This is required for servletexec.

Both the tag and directive specifies a western european with thai additions. Would I be able to modify the
meta tag like this (to make it generic). I know I cannot do this in the page directive.

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=<%= charSet %>">

/Peter

Reply via email to