Name
<fmt:requestEncoding>
Synopsis
The
<fmt:requestEncoding>
action sets the character encoding for the request to facilitate
correct interpretation of request parameter values when the encoding
is different from ISO-8859-1. The encoding can be specified
explicitly. It can also be determined based on the request
Content-Type
header, if any, or the encoding
session variable set by all JSTL actions that set the locale for a
response
(javax.servlet.jsp.jstl.fmt.request.charset
).
Syntax
<fmt:requestEncoding [value="encodingName
"] />
Attributes
Attribute name |
Java type |
Dynamic value accepted |
Description |
Value |
String |
Yes |
The encoding name. |
Example
<%-- Sets the request encoding to the same encoding as was used for the previous response in the current session. --> <fmt:requestEncoding />
Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.