Results 1 to 4 of 4

Thread: Access property from context:property-placeholder

Hybrid View

  1. #1

    Default Access property from context:property-placeholder

    Hi,

    If I load a property file using
    Code:
    	<context:property-placeholder
    		location="classpath:my.properties" />
    How do I access this in my flow definition?

    Code:
    <on-start>
        <set name="flowScope.value" value="${value}"/>
    </on-start>
    With Spring xml files I use ${}, though can't use that with web flow because of the EL... what is the alternative syntax?

    I also tried using #{}, though that didnt work either....

    Thanks,
    Josh

  2. #2

    Default

    Hi, I have the same problem. Any solution? Thanks!

  3. #3
    Join Date
    Feb 2012
    Posts
    2

    Default

    Hi, is there someone to answer to this question ?

    Web and documentation seem clueless...

    Specifically, my problem is the following code :
    Code:
    <end-state id="myId" view="externalRedirect:${site.url}/mypage.do" />

  4. #4
    Join Date
    Feb 2012
    Posts
    2

    Default

    Best way i found so far :

    Code:
    <bean id="myUrl" class="java.lang.String">
        	<constructor-arg value="${site.url}"/>
    </bean>

    Code:
    <end-state id="myId" view="externalRedirect:${myUrl}/mypage.do" />

Tags for this Thread

Posting Permissions

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