Developing a Java Web Application in a Day: Step by step explanations with Eclipse Mars, Tomcat and MySQL (Java Web Programming Book 1) by Luciano Manelli

Developing a Java Web Application in a Day: Step by step explanations with Eclipse Mars, Tomcat and MySQL (Java Web Programming Book 1) by Luciano Manelli

Author:Luciano Manelli
Language: eng
Format: mobi, epub, pdf
Publisher: Luciano Manelli
Published: 2016-01-02T22:00:00+00:00


System.out.println("SONO IN POST");

String name = request.getParameter("name");

System.out.println("name (POST):"+name);

PrintWriter out = response.getWriter();

java.util.Date today = new java.util.Date();

out.println("<html><body>" + today +

" POST parameter: " + name+ "</body></html>");

}

Figure 82. Eclipse, doGet and doPost in a Servlet.

If we click the first submit button “POST SUBMIT” – Figure 81 (which sends a POST message to the servlet), we get the following result on the Eclipse browser and on the browser.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.