Java 7 A Comprehensive Tutorial (Pg 620 628).pdf


Preview of PDF document java-7-a-comprehensive-tutorial-pg-620-628.pdf

Page 1 2 3 4 5 6 7 8 9

Text preview


612

Java 7: A Comprehensive Tutorial

while (parameterNames.hasMoreElements()) {
String paramName = parameterNames.nextElement();
writer.println(paramName + ": ");
String[] paramValues = request
.getParameterValues(paramName);
for (String paramValue : paramValues) {
writer.println(paramValue + "<br/>");
}
}
writer.println("</div>");
writer.println("</body>");
writer.println("</html>");
}

}

You invoke the FormServlet using this URL:

Copyright © 2014. Brainy Software. All rights reserved.

http://localhost:8080/app26b/form

Figure 26.7: The empty Order form

Kurniawan, Budi. Java 7 : A Comprehensive Tutorial, Brainy Software, 2014. ProQuest Ebook Central,
http://ebookcentral.proquest.com/lib/valencia-ebooks/detail.action?docID=3003885.
Created from valencia-ebooks on 2018-04-23 08:26:32.