I'm setting my properties in app-servlet.xml
with a bean like this:
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="/WEB-INF/my.properties"></property>
</bean>
Most of the time I access the properties in my controllers or other classes like this:
@Value("${dbtype}")
public String dbType;
But what if I want to use a property in a JSP file and bypass the controller. Meaning I don't want the value type being passed from the controller to the JSP as a model attribute.
Is there a way to access properties directly in a jsp?