Skip to content

Instantly share code, notes, and snippets.

@obstschale
Created June 4, 2013 11:46
Show Gist options
  • Save obstschale/5705347 to your computer and use it in GitHub Desktop.
Save obstschale/5705347 to your computer and use it in GitHub Desktop.
Display all given parameter in a JSP file.
Map<String, String[]> parameters = request.getParameterMap();
for(String parameter : parameters.keySet()) {
if(!parameter.toLowerCase().startsWith("submitbutton")) {
String[] values = parameters.get(parameter);
//your code here
%> <p> <%= parameter %>: <strong><%= values[0] %></strong> </p> <%
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment