public static String getRequestParameters( HttpServletRequest aRequest)
{
StringBuffer aReturn = new StringBuffer("");
Enumeration parameterNames = aRequest.getParameterNames();
while (parameterNames.hasMoreElements()) {
String requestParameter = (String) parameterNames.nextElement();
String[] aValues = aRequest.getParameterValues(requestParameter);
for (int i = 0; i <> 0) {
aReturn.append("&");
}
aReturn.append(requestParameter);
aReturn.append("=");
aReturn.append(aValues[i]);
}
}
return aReturn.toString();
}
}
The journey through the body of the great beast, we are parasites in its body. The trucks and trains its blood cells, the roads its arteries. We see the beast around us, it consumes us completely.
Wednesday, February 04, 2004
very useful snippet: