Request parameter. How to find whether a parameter exists in the request object?
Created Feb 25, 2002
Alex Chaffee
boolean hasFoo = !(request.getParameter("foo") == null || request.getParameter("foo").equals(""));
Tom Paris adds:
boolean hasParameter = request.getParameterMap().contains(theParameter);(which works in Servlet 2.3+)