Announcement Announcement Module
Collapse
No announcement yet.
Access request attributes from within the flow xml file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Access request attributes from within the flow xml file

    Hi all,

    I'm a newbie of SWF.
    I'd like to access the HTTP request attributes from within the flow definition XML file.

    I store an attribute in an interceptor and I'l like to use it inside a
    <view-state> tag.

    Can you give me a suggestion?

    Thank you all,

    Andrea

  • #2
    I think that you can use requestParameters for this purpose

    See section 3.5 of the reference docs

    http://static.springsource.org/sprin...l#el-variables

    ---

    Use requestParameters to access a client request parameter:
    Code:
    <set name="requestScope.hotelId" value="requestParameters.id" type="long" />

    Comment

    Working...
    X