beehive/netui/test/webapps/drt/web/bugs/b38182/results.jsp

36 lines
1.7 KiB
Plaintext

<!--Generated by WebLogic Workshop-->
<%@ 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"%>
<netui:html>
<body>
<h4>Request Paramaters</h4>
<p sytle="color:green">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.
</p>
<%
//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());
%>
<netui-data:repeater dataSource="requestScope.parameterNames">
<netui-data:repeaterHeader><ul></netui-data:repeaterHeader>
<netui-data:repeaterItem><li><netui:span value="${container.item}"/></li>
</netui-data:repeaterItem>
<netui-data:repeaterFooter></ul></netui-data:repeaterFooter>
</netui-data:repeater>
</body>
</netui:html>