It's been a while since I have written any code and I am having an issue getting back into it.
I am currently working on creating
servlet to pass info from all my forms to my business logic. However, I am having an issue with getting the data. This may be a topic for a different forum, but I figured I would ask here.
I tested out the servlet with the getParameter() method, and I can get the values. However, when I try to use the java.util.Map, I get blank values.
I think the issue may be that I forgot how to use the Map object. Here is my code:
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet CalCartController</title>");
out.println("</head>");
out.println("<body>");
for (int i = 0; i < formParamsMap.size(); i++) {
Map.Entry entry = (Map.Entry) keyValuePairs.next();
String key = (String)entry.getKey();
String value = (String)entry.getValue();
out.println(value);
}
out.println("<h1>Servlet CalCartController </h1>");
out.println("</body>");
out.println("</html>");