Friday, June 11, 2010

Blogspot formatters

http://codeformatter.blogspot.com/2009/06/about-code-formatter.html

Access properties in jsp

.

<fmt:setbundle basename="Here we mention properties file name" scope="page" var="link"></fmt:setbundle>


<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