public Map<String, Object> createScriptParameters(WebScriptRequest req, WebScriptResponse res) { Map<String, Object> params = new HashMap<String, Object>(); // Because form data is 'special', the request may have already parsed // it, so ask the request for the cached content params.put("formdata", req.parseContent()); return params; } }
public Map<String, Object> createScriptParameters(WebScriptRequest req, WebScriptResponse res) { Map<String, Object> params = new HashMap<String, Object>(); // Because form data is 'special', the request may have already parsed // it, so ask the request for the cached content params.put("formdata", req.parseContent()); return params; } }
public Map<String, Object> createScriptParameters(WebScriptRequest req, WebScriptResponse res) { Map<String, Object> params = new HashMap<String, Object>(); // Because form data is 'special', the request may have already parsed // it, so ask the request for the cached content params.put("formdata", req.parseContent()); return params; } }
Object content = req.parseContent(); if (content == null || !(content instanceof FormData))