In my application context I have defined properties file:
<context:property-placeholder location="classpath:application.properties" />
I want to get value of the property defined in that file on JSP page. Is there a way to do that in the way
${something.myProperty}?
PropertyPlaceholderConfigurercan only parse placeholders in Spring configuration (XML or annotations). Is very common in Spring applications use aPropertiesbean. You can access it from your view this way (assuming you are usingInternalResourceViewResolver):Then, in your JSP, you can use
${properties.myProperty}or${properties['my.property']}.