A Java Servlet e-Shop (eshop)
4.0 (15 ratings)
Instead of using a simple lifetime average, Udemy calculates a 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.
229 students enrolled
Wishlisted Wishlist

Please confirm that you want to add A Java Servlet e-Shop (eshop) to your Wishlist.

Add to Wishlist

A Java Servlet e-Shop (eshop)

Creating a functional e-Shop using Java Servlet, and Java Server-Side Programming. Eclipse Tomcat Server and MySql
4.0 (15 ratings)
Instead of using a simple lifetime average, Udemy calculates a 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.
229 students enrolled
Created by Johnny Karkar
Last updated 2/2014
English
Current price: $10 Original price: $20 Discount: 50% off
1 day left at this price!
30-Day Money-Back Guarantee
Includes:
  • 2.5 hours on-demand video
  • 4 Articles
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Develop an "e-shop" based on the Java Servlet Technology
View Curriculum
Requirements
  • Basic knowledge of SQL and Java, Laptop/PC with generous disk space.
Description

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.

Who is the target audience?
  • Programmers, IT Students and everyone else.
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 31 Lectures Collapse All 31 Lectures 02:48:04
+
PROTOCOL? - HTTP?
3 Lectures 28:28
What is a Protocol? HTTP - part 1
10:21

What is a Protocol? HTTP - part 2
13:18

+
GETTING STARTED
8 Lectures 35:02
Download the JDK
00:44

Installing the JDK and JRE
00:48


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 MySql Server
02:59

Download and Install Tomcat
03:43

Download and Install Eclipse - Configure Tomcat in Eclipse
09:08

TCP-IP Monitor (in Eclipse)
05:41

Configure MySQL in Eclipse
03:52
+
GETTING STARTED WITH SERVLET
6 Lectures 38:02

Setting up the E-Shop Webapp
07:31

Let write a servlet that queries the database based on the client's request.

Writing Database Query Servlet
10:18

In the "querybook.html", the request URL in the

's action attribute (i.e., http://localhost:8080/ebookshop/query) is called an absolute URL.

The hostname, port number and path are all hard-coded in an absolute URL. This will cause problem if you decide to relocate your program to another host (e.g., from the testing host into the production host), or another webapp.

Instead of using an absolute URL, we would use a relative URL (in "querybook.html")

Relative URL vs. Absolute URL
03:00

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))

Multi-Value Query - "QueryMultiValueServlet.java"
08:45

Create a new servlet called "QueryMultiParamServlet.java" (based on "QueryServlet.java") to handle multiple query parameters.

Preview 05:00
+
Quiz and Challenge
3 Lectures 01:23
Write a servlet called "QueryMultiParamValueServlet.java"
00:14

HTTP POST Request - Challenge
00:30

What is the difference between GET and POST?
00:38
+
Quiz and Challenge Solutions.
3 Lectures 16:24

Solution to Lecture 19
04:43

Solution to Lecture 20
03:00
+
Programming the Client-Side (Front-End)
2 Lectures 06:13
HTML Form with "Pull-down Menu"
03:17

HTML form with Text Field
02:56
+
Programming the Server-Side to Process Order
4 Lectures 32:25
Recap
07:33


Processing the Order - "EshopOrderServlet.java"
11:53

Touching Up - html Table, order_records
07:41
+
REFERENCES & RESOURCES
1 Lecture 00:34
REFERENCES & RESOURCES
00:34
+
What's Next?
1 Lecture 06:47
What's Next?
06:47
About the Instructor
Johnny Karkar
3.9 Average rating
98 Reviews
715 Students
4 Courses

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.