A Java Servlet e-Shop (eshop)
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
Find online courses made by experts from around the world.
Take your courses with you and learn anywhere, anytime.
Learn and practice real-world skills and achieve your goals.
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.
Not for you? No problem.
30 day money back guarantee.
Learn on the go.
Desktop, iOS and Android.
Certificate of completion.
|Section 1: PROTOCOL? - HTTP?|
What is a Protocol? HTTP - part 1
What is a Protocol? HTTP - part 2
Poker-analogy (HTTP messages)Preview
|Section 2: GETTING STARTED|
Download the JDK
Installing the JDK and JRE
Setting the CLASSPATH and Environment VariablesPreview
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
Download and Install Tomcat
Download and Install Eclipse - Configure Tomcat in Eclipse
TCP-IP Monitor (in Eclipse)
Configure MySQL in Eclipse
|Section 3: GETTING STARTED WITH SERVLET|
Setting up the DatabasePreview
Setting up the E-Shop Webapp
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.
|Section 4: Quiz and Challenge|
Write a servlet called "QueryMultiParamValueServlet.java"
HTTP POST Request - Challenge
What is the difference between GET and POST?
|Section 5: Quiz and Challenge Solutions.|
Solution to Lecture 18Preview
Solution to Lecture 19
Solution to Lecture 20
|Section 6: Programming the Client-Side (Front-End)|
HTML Form with "Pull-down Menu"
HTML form with Text Field
|Section 7: Programming the Server-Side to Process Order|
Display an Order Form - "EshopQueryServlet.java"Preview
Processing the Order - "EshopOrderServlet.java"
Touching Up - html Table, order_records
|Section 8: REFERENCES & RESOURCES|
REFERENCES & RESOURCES
|Section 9: What's Next?|
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.