Results 1 to 2 of 2

Thread: Passing a request parameter to a spring bean

  1. #1
    Join Date
    Jun 2008
    Posts
    1

    Default 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. #2
    Join Date
    Jul 2008
    Posts
    9

    Default

    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>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •