In this series, we shall develop an "e-shop" based on the Java Servlet Technology. This e-shop is a typical Internet business-to-consumer (B2C) 3-tier client/server database application,. The course is not meant to be a Java tutorial, and basic knowledge of java is desired. Having said that some java will be thought when we are covering Servlet. Throughout the course, we will be using Apache Tomcat, MySql Server and Eclipse IDE.
Download and Install MySQL
A Java Servlet e-Shop
Creating a functional e-Shop using Java Servlet, and Java Server-Side Programming. Eclipse Tomcat Server and MySql
Let write a servlet that queries the database based on the client's request.
In the "querybook.html", the request URL in the
If you check more than one authors and submit your request to the QueryServlet, the query result shows only the first author. This is because the method request.getParameter(name) returns only the first value, if there are more than one values for that particular parameter name.
We have to use the method request.getParameterValues(name) (instead of request.getParameter(name))
Create a new servlet called "QueryMultiParamServlet.java" (based on "QueryServlet.java") to handle multiple query parameters.
Software Development Trainer
After working as a software developer and contractor for over 20 years for several companies including Grimaldi, Panalpina, SITEL and Toyota, in the UK, Europe and Africa, I decided to work full-time as a software trainer. I continue to live in the beautiful city of London, from where I continue to support several of my IT clients and offer training, support and advise.