<fmt:message bundle="${link}" key="test"></fmt:message> key is the property we are looking for in the Example.properties file, and ${link} will get its value. Tag library required for this operations is <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
.
put Example.properties file under WEB-INF/classes/
Run Example.jsp you will get the above output
No comments:
Post a Comment