JSP JSTL < FMT: bundle > tag: read binding message resources


body content

Example

<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  <fmt:bundle basename="localMessage" prefix="zs">
    <fmt:message key="company" var="company"/>
    <fmt:message key="author" var="author"/>
    <fmt:message key="branch" var="branch"/>
    公司:${company}
    作者:${author}
    部门:${branch}
  </fmt:bundle>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>