When you debug the sink interface, the received parameter is returned with Request.getparameter (), and the value obtained is null.
The search data says this is related to the attribute enctype of the form form. when the form form content is enctype=multipart/form-data encoded,
The call to Request.getparameter () does not get data. Data can be obtained by Request.getinputstream () and the
"usrcustid=6000060003271506, Bgreturl=http%3a%2f%2f218.241.185.188%3a59999%2fsrd%2fviews%2fregister%2fuserregister "
Formatted data into a string, the string is converted into a map data can be evaluated.
String string = Ioutils.tostring (Request.getinputstream ());
map<string, string> maprequest = URLRequest (String);
Public map<string, String> urlrequest (string string) {
map<string, string> maprequest = new hashmap<string, string> ();
String[] Arrsplit=string.split ("[&]");
for (String strsplit:arrsplit)
{
String[] Arrsplitequal=null;
Arrsplitequal= strsplit.split ("[=]");
Parse out key values
if (arrsplitequal.length>1)
{
Correct parsing
Maprequest.put (Arrsplitequal[0], arrsplitequal[1]);
}
Else
{
if (arrsplitequal[0]!= "")
{
Only parameters have no value, do not join
Maprequest.put (Arrsplitequal[0], "");
}
}
}
return maprequest;
}
Request.getparameter () cannot get a value