Announcement Announcement Module
Collapse
No announcement yet.
Declaration of flow variables Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Declaration of flow variables

    Hi,

    I am new to spring web flow.I have referred the sample applications that came with the distribution.
    In the booking-flow.xml(booking-mvc application),the evaluate expression result is assigned to a flow variable as shown below:
    <evaluate expression="bookingService.createBooking(hotelId, currentUser.name)" result="flowScope.booking" />

    My doubt is, where we will declare the variable 'flowScope.booking'.I did not find any declaration for the variable 'booking' in the flow.xml.Are there any other places for the flow variables declaration.

    Regards,
    Raj

  • #2
    What will happen is

    Code:
    bookingService.createBooking(hotelId, currentUser.name)
    will create an object and it will be placed inside the flowscope (http://static.springsource.org/sprin...l/ch03s05.html) under the name 'booking' and the view can access that object using EL (flowscope.booking.fieldname)

    Comment


    • #3
      Thanks mahesh!!That has cleared my doubt.

      Comment

      Working...
      X