A Java Servlet e-Shop (eshop)

Creating a functional e-Shop using Java Servlet, and Java Server-Side Programming. Eclipse Tomcat Server and MySql
3.8 (8 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.
208 students enrolled
$20
Take This Course
  • Lectures 31
  • Contents Video: 2.5 hours
    Other: 5 mins
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 11/2013 English

Course 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.

What are the requirements?

  • Basic knowledge of SQL and Java, Laptop/PC with generous disk space.

What am I going to get from this course?

  • Develop an "e-shop" based on the Java Servlet Technology

What is the target audience?

  • Programmers, IT Students and everyone else.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: PROTOCOL? - HTTP?
What is a Protocol? HTTP - part 1
10:21
What is a Protocol? HTTP - part 2
13:18
Poker-analogy (HTTP messages)
Preview
04:49
Section 2: GETTING STARTED
Download the JDK
00:44
Installing the JDK and JRE
00:48
Setting the CLASSPATH and Environment Variables
Preview
08:07
02:59

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
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
Section 3: GETTING STARTED WITH SERVLET
Setting up the Database
Preview
03:28
Setting up the E-Shop Webapp
07:31
10:18

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

03:00

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

08:45

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

05:00

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"
Article
HTTP POST Request - Challenge
Article
What is the difference between GET and POST?
Article
Section 5: Quiz and Challenge Solutions.
Solution to Lecture 18
Preview
08:41
Solution to Lecture 19
04:43
Solution to Lecture 20
03:00
Section 6: Programming the Client-Side (Front-End)
HTML Form with "Pull-down Menu"
03:17
HTML form with Text Field
02:56
Section 7: Programming the Server-Side to Process Order
Recap
07:33
Display an Order Form - "EshopQueryServlet.java"
Preview
05:18
Processing the Order - "EshopOrderServlet.java"
11:53
Touching Up - html Table, order_records
07:41
Section 8: REFERENCES & RESOURCES
REFERENCES & RESOURCES
Article
Section 9: What's Next?
What's Next?
06:47

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

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.

Ready to start learning?
Take This Course