jsp 实用工具

xiaoxiao2023-01-25  11

class ParamUtil { public static String getParameter(HttpServletRequest request, String name); public static String getParameter(HttpServletRequest request,String name, boolean emptyStringsOK); public static boolean getBooleanParameter(HttpServletRequest request,String name); public static boolean getBooleanParameter(HttpServletRequest request,String name, boolean defaultVal); public static int getIntParameter(HttpServletRequest request,String name, int defaultNum); public static int[] getIntParameters(HttpServletRequest request,String name, int defaultNum); public static double getDoubleParameter(HttpServletRequest request, String name, double defaultNum); public static long getLongParameter(HttpServletRequest request,String name, long defaultNum); public static long[] getLongParameters(HttpServletRequest request,String name, long defaultNum); //getAttribute 类同 }

获得参数工具

相关资源:Jsp开发工具,工作流源代码
转载请注明原文地址: https://www.6miu.com/read-4980769.html

最新回复(0)