My html page sends only one parameter. I need to handle it and send a response. This code handles more than one parameter and in my case is not so good:
Enumeration<?> paramNames = request.getParameterNames();
while (paramNames.hasMoreElements()) {
String paramName = (String) paramNames.nextElement();
}
But how I can modify this code if I have only one parameter and do not know its name.
Thanks!
Try something like this.