Skip to content

Can't retrieve form data with POST and @RequestParam("myParamName") #724

Closed
@sixman9

Description

@RequestMapping(value = "/reverse", method = RequestMethod.POST, code = 200)
    public void doPostReverse(@RequestParam("reverseParam") String reverseParam, Callback<String> callback) {
        String retval = reverseParam!=null?new StringBuilder(reverseParam).reverse().toString():"reverseParam was NULL";

        System.out.println("In: " + reverseParam + ", Out: " + retval);

    ......

Method parameter 'String reverseParam' is never populated from a form data submission (constructed by Chrome-Postman client), any ideas what I'm doing wrong (qbit 1.6.0)???

The URL _is_ being called, as the 'System.out...' call is executed ("In: null....").

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions