<%@ page language="java" contentType="text/html;charset=UTF-8"%> <%@ taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%> <%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%> <%@ taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>

Request Paramaters

This results page will simply dump the request parameters to the page using a repeater. To avoid false test failures, we first sort the parameter names to impose order on the items within the Enumerator.

<% //request.setAttribute("parameterNames",request.getParameterNames()); // not sure if this test was specific to Enumerator or not, so // step through some convoluted steps to sort and get an Enumerator. java.util.Enumeration e = request.getParameterNames(); String[] names = new String[0]; java.util.List list = new java.util.ArrayList(); while (e.hasMoreElements()) { //System.err.println("Element:" + e.nextElement()); list.add(e.nextElement()); } java.util.Collections.sort(list); request.setAttribute("parameterNames", (new java.util.Vector(list)).elements()); %>