Chapter 10, Float Your Application with Web Flow

Questions

Answers

Consider the following web flow registry configuration; it has a single flow definition file, namely validate.xml. How will you form the URL to invoke the flow?

@Bean   
public FlowDefinitionRegistry flowRegistry() {    
    return getFlowDefinitionRegistryBuilder()    
            .setBasePath("/WEB-INF/flows")    
  .addFlowLocation("/customer/validate.xml","validateCustomer")      
            .build();    
}   

3. http://localhost:8080/webstore/validateCustomer

Consider the following flow invoking URL:

http://localhost:8080/webstore/validate?customerId=C1234

In a flow definition file, how will you retrieve the customerId HTTP request parameter?

1.  <evaluate expression = "requestParameters.customerId " result = "customerId" />

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.96.26