Announcement Announcement Module
Collapse
No announcement yet.
Passing a request parameter to a spring bean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Passing a request parameter to a spring bean

    I'm currently migrating my software from plain JSF to a combination of JSF with Spring (so I'm not very familiar with spring yet). All works fine except one thing that I do not get to work. In JSF ther is a possibility to inject request parameters into beans with a managed property in the faces-config.xml:

    HTML Code:
    <managed-property>
                <property-name>propertyName</property-name>
                <value>#{param.paramName}</value>
    </managed-property>
    Is there a way to do this in spring or is there another way to pass a parameter to a spring bean (ServletFilter / Listener or something like that).

    Thank you for any suggestions...

  • #2
    Did you ever find an answer to this? I am running into the same issue. The following does not evaluate the EL:
    Code:
    <bean id="myReqBean" class="com.foo.bar.MyClass">
      <property name="myprop"><value>#{param.paramName}</value></property>
    </bean>

    Comment

    Working...
    X