Announcement Announcement Module
Collapse
No announcement yet.
Spring 3.1 Java based configuration : how to inject Environment to use props in JSP ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring 3.1 Java based configuration : how to inject Environment to use props in JSP ?

    Hi,

    I'm having a look at http://static.springsource.org/sprin...atic-resources
    and I'd like to know how, in a pure Spring Java based configuration I can inject the Environment object, wrapping all my properties, in order to be able to use a property in the JSP.

    If I take the exact same example as in the documentation, I want something like :
    Code:
    <spring:eval expression="@env['application.version']" var="applicationVersion"/>
    where 'env' is already defined as :
    Code:
    @Inject Environment env;
    How can I let env to be visible and resolved by spring:eval ?
Working...
X