CATEGORIES
Ways to Iterate the Form Submit Values on Form Submit
Published by: Peter (11/6/2008 2:23:34 PM)
NOV 6 2008
I am not very experienced in Java, I just try to get it done but here is an issue which i am having tough time in resolving. I want to have a generic script which will read the form submitted parameters and iterate through all to send one email. Can any one help me?
Most Popular Articles
- Sending Email from JSP Pages Using smtp.gmail.com
- How to Configure 404 Error or Page not Found on Tomcat
- JSP Web Services Example - XML, XSLT in JSP - XML Web Services in Java
- How to Change the Image onMouseOver
- How to Email from JSP Page?
<< Can I have a Sample Javascript Code for Disabling Right Click on Images
COMMENT
Name: admin
Map parameterMap = request.getParameterMap();
Set keySet = parameterMap.keySet();
Iterator i = keySet.iterator();
String key, val;
while (i.hasNext())
{
key = (String) i.next();
val = request.getParameter(key);
if (key.equals("Submit") == false) {
if (val.length() > 0) {
out.println( key + ": " + val + "</br>" );
}
}
}