Announcement Announcement Module
No announcement yet.
Passing a request parameter to a spring bean Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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:
    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:
    <bean id="myReqBean" class="">
      <property name="myprop"><value>#{param.paramName}</value></property>