Home Java - Pass multiple parameters to ajax post
Reply: 0

Java - Pass multiple parameters to ajax post

user788
1#
user788 Published in April 24, 2018, 6:31 am

I have this simple controller from ajax request. It works but I wanted to return many stuff, not only List TestFlow.getFlow(flowName);

 @RequestMapping(value = "/execute-flow/getFlow" , method = RequestMethod.POST)
public @ResponseBody List<String> getFlow(@RequestParam("flowName") String flowName) {
    return TestFlow.getFlow(flowName);
}

Can I return multiple things to the ajax post?

For example:

 @RequestMapping(value = "/execute-flow/getFlow" , method = RequestMethod.POST)
public @ResponseBody List<String> getFlow(@RequestParam("flowName") String flowName) {
    return TestFlow.getFlow(flowName);
    return TestFlow.getInputs(flowName);
    return TestFlow.getCode(flowName);
}
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.30318 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO