Query string parameters that don't have a value are not included in the
Enumeration returned by ServletRequest.getParameterNames()

For example, for a URL like /foo?p1=v1&p2&p3=v3, this code will only print
p1, and p3
<%
.
Enumeration enum = request.getParameterNames();
while(enum.hasMoreElements())
{
        out.println(enum.nextElement() + "<br>");
}
.
.
%>


I can't find anything in the spec that deals with this...

Reply via email to