getPara series methods


Controller provides the getPara series of methods to obtain parameters from requests. The getPara series methods are divided into two types. The first type is the getPara series method whose first formal parameter is String. This series of methods is an encapsulation of HttpServletRequest.getParameter(String name). These methods are all converted to HttpServletRequest.getParameter(String name). The second type is the getPara series of methods whose first formal parameter is int or invisible parameter. This series of methods is to obtain the parameter value contained in urlPara. getParaMap and getParaNames correspond to getParameterMap and getParameterNames of HttpServletRequest respectively.



Memory Tips: The first parameter of type String will be retrieved from the form or url The domain value of the question mark parameter. If the first parameter is int or has no parameters, the parameter value in urlPara will be obtained.



##getPara Usage example:

QQ截图20170206101511.png