YouTip LogoYouTip

Jstl Format Requestencoding Tag

# Tag [![Image 3: JSP Standard Tag Library](#)JSP Standard Tag Library](#) The `` tag is used to specify the character encoding for the request body, which is used to decode form data submitted by the client. ### Syntax Format <fmt:requestEncoding value=""/> ### Attributes The `` tag has the following attributes: | **Attribute** | **Description** | **Required** | **Default Value** | | --- | --- | --- | --- | | key | The name of the character encoding set used to decode request parameters. | Yes | None | Use the `` tag to specify the character set for decoding data from forms. This tag must be used when the character set is not ISO-8859-1. Since most browsers do not include a Content-Type header in their requests, this tag is necessary. The purpose of the `` tag is to specify the Content-Type of the request. You must specify a Content-Type, even if the response is encoded via the Page directive's contentType attribute. This is because the actual locale of the response may differ from that specified by the Page directive. If the page contains an I18N-capable formatting action that sets the response's locale (by calling the `ServletResponse.setLocale()` method), any character set specified in the page will be overridden. * * * ## Example Demonstration ## Example JSTL fmt:requestEncoding Tag


The output is as follows: UnoDosTres * * JSP Standard Tag Library](#)
← Jstl Sql Setdatasource TagJstl Format Message Tag β†’