<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> JSTL: Formatting/I18N Support -- Parametric Replacement Example

Parametric Replacement

  • Using single <param> with 'value' evaluating to String:
  • Using single <param> with 'value' evaluating to java.util.Date:
  • Using single <param> with body:
  • Using multiple parameters:
  • Locale set to Spanish yields a locale-less localization context. Formatting still done using the preferred locale:
  • Locale set to English yields a locale-less localization context. Formatting still done using the preferred locale: