I seem to be having some trouble accessing the methods of a bean (ArrivalRequest) I have placed in the flow scope from a view.
In the first Action-state I call a bean that contains the following code in its doExecute method:
In the action-state that follows the view-state that is called by the above action-state I call a setter method in that bean using the following code so I know it is there and accessible:Code:ArrivalRequest req = new ArrivalRequest(); context.getFlowScope().setAttribute("arrivalRequest",req);
Using jsp or Velocity syntax, how would I reference the getServiceBoard method of the arrivalRequest bean?Code:((ArrivalRequest)context.getFlowScope().getAttribute( "arrivalRequest")).setServiceBoard(new Integer(serviceBoard));
I have tried (in Velocity):
andCode:${flowScope.getAttribute("arrivalRequest").getServiceBoard()}
Code:${flowScope.arrivalRequest.serviceBoard}


Reply With Quote