Friday, June 11, 2010
Access properties in jsp
<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
Subscribe to:
Posts (Atom)