List of usage examples for org.springframework.web.bind ServletRequestUtils getDoubleParameter
public static double getDoubleParameter(ServletRequest request, String name, double defaultVal)
From source file:com.netease.channel.util.ServletUtils.java
/** * Get a long parameter, with a fallback value. Never throws an exception. * Can pass a distinguished value as default to enable checks of whether it * was supplied./* w w w. ja v a 2 s.c o m*/ * * @param request * current HTTP request * @param name * the name of the parameter * @param defaultVal * the default value to use as fallback */ public static double getDouble(ServletRequest request, String name, long defaultVal) { return ServletRequestUtils.getDoubleParameter(request, name, defaultVal); }