9/03/2008

struts 2: integrate groovy batch


// Using groovy to find out next page by evaluating rule defined in form schema.
Binding binding = new Binding();
binding.setVariable("page", page);
GroovyShell shell = new GroovyShell(binding);
String result = (String) shell.evaluate(page.getFlowRule());

No comments: