<%@page import="java.util.*" %>
<%
Enumeration<String> paraNames = session.getAttributeNames();
for(Enumeration e=paraNames;e.hasMoreElements();){
String thisName=e.nextElement().toString();
String thisValue=request.getParameter(thisName);
System.out.println(thisName+"--------------"+thisValue);
}
Enumeration<String> paraNames2 = request.getAttributeNames();
for(Enumeration e=paraNames2;e.hasMoreElements();){
String thisName=e.nextElement().toString();
String thisValue=request.getParameter(thisName);
System.out.println(thisName+"--------------"+thisValue);
}
<%
Enumeration<String> paraNames = session.getAttributeNames();
for(Enumeration e=paraNames;e.hasMoreElements();){
String thisName=e.nextElement().toString();
String thisValue=request.getParameter(thisName);
System.out.println(thisName+"--------------"+thisValue);
}
Enumeration<String> paraNames2 = request.getAttributeNames();
for(Enumeration e=paraNames2;e.hasMoreElements();){
String thisName=e.nextElement().toString();
String thisValue=request.getParameter(thisName);
System.out.println(thisName+"--------------"+thisValue);
}
%>
while
(enums.hasMoreElements());
{
String v=(String)enums.nextElement();
System.out.println(v);
}