| java.lang.Object com.Yasna.forum.util.ParamUtils
ParamUtils | public class ParamUtils (Code) | | This class assists skin writers in getting parameters.
|
Method Summary | |
public static String[] | getArrayParameter(HttpServletRequest request, String paramName) | public static String | getAttribute(HttpServletRequest request, String attribName) Gets a parameter as a string. | public static String | getAttribute(HttpServletRequest request, String attribName, boolean emptyStringsOK) Gets a parameter as a string.
Parameters: request - The HttpServletRequest object, known as "request" in aJSP page. Parameters: attribName - The name of the parameter you want to get Parameters: emptyStringsOK - Return the parameter values even if it is an empty string. | public static boolean | getBooleanAttribute(HttpServletRequest request, String attribName) Gets an attribute as a boolean. | public static boolean | getBooleanParameter(HttpServletRequest request, String paramName) Gets a parameter as a boolean. | public static Calendar | getCalendarParameter(HttpServletRequest request, String paramName) | public static boolean | getCheckboxParameter(HttpServletRequest request, String paramName) Gets a checkbox parameter value as a boolean. | public static java.sql.Date | getDateParameter(HttpServletRequest request, String paramName) | public static float | getFloatParameter(HttpServletRequest request, String paramName, float defaultNum) | public static int[] | getIntArrayParameter(HttpServletRequest request, String paramName) | public static int | getIntAttribute(HttpServletRequest request, String attribName, int defaultNum) Gets an attribute as a int. | public static int | getIntParameter(HttpServletRequest request, String paramName, int defaultNum) Gets a parameter as a int. | public static String | getParameter(HttpServletRequest request, String paramName) Gets a parameter as a string. | public static String | getParameter(HttpServletRequest request, String paramName, boolean emptyStringsOK) Gets a parameter as a string.
Parameters: request - The HttpServletRequest object, known as "request" in aJSP page. Parameters: paramName - The name of the parameter you want to get Parameters: emptyStringsOK - Return the parameter values even if it is an empty string. |
getAttribute | public static String getAttribute(HttpServletRequest request, String attribName)(Code) | | Gets a parameter as a string.
Parameters: request - The HttpServletRequest object, known as "request" in aJSP page. Parameters: attribName - The name of the parameter you want to get The value of the parameter or null if the parameter was notfound or if the parameter is a zero-length string. |
getAttribute | public static String getAttribute(HttpServletRequest request, String attribName, boolean emptyStringsOK)(Code) | | Gets a parameter as a string.
Parameters: request - The HttpServletRequest object, known as "request" in aJSP page. Parameters: attribName - The name of the parameter you want to get Parameters: emptyStringsOK - Return the parameter values even if it is an empty string. The value of the parameter or null if the parameter was notfound. |
getBooleanAttribute | public static boolean getBooleanAttribute(HttpServletRequest request, String attribName)(Code) | | Gets an attribute as a boolean.
Parameters: request - The HttpServletRequest object, known as "request" in aJSP page. Parameters: attribName - The name of the attribute you want to get True if the value of the attribute is "true", false otherwise. |
getBooleanParameter | public static boolean getBooleanParameter(HttpServletRequest request, String paramName)(Code) | | Gets a parameter as a boolean.
Parameters: request - The HttpServletRequest object, known as "request" in aJSP page. Parameters: paramName - The name of the parameter you want to get True if the value of the parameter was "true", false otherwise. |
getCheckboxParameter | public static boolean getCheckboxParameter(HttpServletRequest request, String paramName)(Code) | | Gets a checkbox parameter value as a boolean.
Parameters: request - The HttpServletRequest object, known as "request" in aJSP page. Parameters: paramName - The name of the parameter you want to get True if the value of the checkbox is "on", false otherwise. |
getIntAttribute | public static int getIntAttribute(HttpServletRequest request, String attribName, int defaultNum)(Code) | | Gets an attribute as a int.
Parameters: request - The HttpServletRequest object, known as "request" in aJSP page. Parameters: attribName - The name of the attribute you want to get The int value of the attribute or the default value if the attribute is notfound or is a zero length string. |
getIntParameter | public static int getIntParameter(HttpServletRequest request, String paramName, int defaultNum)(Code) | | Gets a parameter as a int.
Parameters: request - The HttpServletRequest object, known as "request" in aJSP page. Parameters: paramName - The name of the parameter you want to get The int value of the parameter specified or the default value ifthe parameter is not found. |
getParameter | public static String getParameter(HttpServletRequest request, String paramName)(Code) | | Gets a parameter as a string.
Parameters: request - The HttpServletRequest object, known as "request" in aJSP page. Parameters: paramName - The name of the parameter you want to get The value of the parameter or null if the parameter was notfound or if the parameter is a zero-length string. |
getParameter | public static String getParameter(HttpServletRequest request, String paramName, boolean emptyStringsOK)(Code) | | Gets a parameter as a string.
Parameters: request - The HttpServletRequest object, known as "request" in aJSP page. Parameters: paramName - The name of the parameter you want to get Parameters: emptyStringsOK - Return the parameter values even if it is an empty string. The value of the parameter or null if the parameter was notfound. |
|
|