Reading Request Strings from GET Inside Spring Web Stream

Hy.

Im continues the spring web stream using the execution key. (order paypal payment) and you will need to read the request lines from get. & TokenID and "PayerID

This is the URL where Paypal redirects the user after confirming the payment:

/sampleflow?execution=e1s1&_eventId=approved&token=EC5D7416956W8431713&PayerID=TN2RE8ZTH67JN 

If EventID is approved, my flow is redirected to the status of the confirmed payment. This part works. I just need to somehow get the query string parameters.

How to do it?

+4
source share
2 answers

I assume that you are trying to access request parameters in an XML stream definition file. You can access parameters using the EL variable requestParameters .

 <evaluate expression="someService.doSomething(requestParameters.TokenID, requestParameters.PayerID)" /> 

http://docs.spring.io/spring-webflow/docs/2.3.x/reference/html/el.html#el-variable-requestParameters

+8
source

The link above did not work for me, but I was able to find the corresponding page at this address: 4.4.6. requestParameters

+1
source

Source: https://habr.com/ru/post/1443946/


All Articles