I suspect a line-by-line rewrite is what you are looking for.
The best place to start is at the Servlet API
http://java.sun.com/products/servlet/2.2/javadoc/index.html
Do the research, and you'll understand the following:
(to everyone else, perhaps this will be illuminating enough to anyone else
who wants to know "how do I convert this ASP code to JSP?")
java.util.Enumeration enum = request.getParameterNames();
while (enum.hasMoreElements())
{
String paramName = (String) enum.nextElement();
String[] paramVals = request.getParameterValues(paramName);
if (paramVals != null)
{
for (int i=0; i<paramVals.length; i++)
{
out.println(paramName + i + "=" + paramVals[i] + "<BR>");
if (paramName.equals("chkMcName"))
{
String txtMcName = paramVals[i];
StaticMethod(txtMcName);
}
}
}
}
this does pretty much everything your ASP example does.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html