Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Servlets and JSPs Tutorial: Learn Web Applications With Java
Rating: 4.2 out of 5(1,594 ratings)
18,237 students

Servlets and JSPs Tutorial: Learn Web Applications With Java

Learn how to create dynamic websites using the Java programming language with this java web application tutorial
Created byJohn Purcell
Last updated 4/2016
English

What you'll learn

  • Understand the core technologies of modern Java web programming
  • Know how to develop and deploy your own websites using Java

Course content

10 sections64 lectures9h 54m total length
  • Introduction3:58

    About the course, and why you should learn web programming with Java.

    • Core basic Java web server technologies
    • Some exciting stuff we'll cover in the course
    • Web design vs. server technologies
    • Travel the world with Java
    • Some prerequisites

  • Setting Up Your System6:58

    In this tutorial we'll look at what software you need to install to start developing Java-based websites. All the software you need is free; we'll be using the industry-standard Eclipse IDE together with the highly popular Tomcat server. And of course, the JDK and JRE (Java Development Kit and Java Runtime Environment).

    • What software to install for Java web application development.
    • Where to find the software.
    • Apache HTTP server vs. Tomcat.
    • Starting Tomcat using the Windows administration tool
    • Starting Tomcat using Eclipse
    • Dealing with the "ports in use" error message

  • A "Hello World" Servlet7:18

    In this tutorial we'll create a "hello world" Java servlet. A servlet is a Java class that runs in an "application server" and sends web pages back to a browser when a user somewhere in the world clicks on a URL. Here we'll get started by creating a really simple servlet that creates the simplest possible web page.

    • Creating servlets
    • Creating dynamic web projects in Eclipse
    • The PrintWriter class
    • http gets
    • The init, doGet and destroy servlet methods
    • The request and response objects

  • A "Hello World" JSP (Java Server Page)9:53

    In this tutorial we'll look at a better way out outputting HTML, rather than having to hardcode it in your servlet. JSPs are another of the core building blocks of Java web applications, allowing you to combine HTML and Java seamlessly.

    • Creating a JSP
    • What are JSPs for?
    • A very brief introduction to HTML
    • Embedding Java in JSPs with scriptlet tags
    • Displaying the date on a JSP page
    • Using the "out" object in a JSP page.



  • Deployment Descriptors: the Web.xml File15:01

    In this tutorial we'll look at the web.xml file; a standard config file that enables us to, among other things, map urls to servlets and JSPs in our applications. We'll need to understand web.xml before we can move on to deploying our applications on the Internet. I'll also give you some tips that may help to ensure you will seldom have to look at web.xml, except when you want to customise your URLs. 

    • The web.xml file
    • Some differences between Eclipse versions
    • "Annotation" style deployment descriptors, and why not to use them
    • Context roots, domain names and servlet mappings
    • Adding a welcome page to your project
    • Mapping JSPs to URLs
    • What to do if your latest code doesn't seem to run in Eclipse

  • Deploying Your Application to a Local Server7:17

    In this tutorial we'll look at deploying your application to a Tomcat server using a .war file. Deploying Java web applications is surprisingly simple, provided you've got a working web.xml.

    • Deploying your application to a Tomcat server
    • Creating .war files
    • Redeploying web applications


  • Important Note ...0:12

    Cloudbees.com, which I originally recommended using to upload your servlet is being or has been decommissioned. There are lots of other options around though -- for example, try https://www.openshift.com, which lets you set up lots of kinds of app server projects -- Java Tomcat included.

  • Deploying Your Application to the Internet -- For Free10:36

    In this tutorial we'll look at how you can deploy your application to the Internet, and without even paying a penny.

    • Google App Engine
    • Cloudbees
    • Clouds and their advantages
    • The importance of web.xml for deployment
    • Fending off the notorious "unsupported major minor version" error
    • Recompiling your application with an appropriate Java version
    • Dealing with the "ports already in use" error message.

Requirements

  • Basic Java knowledge
  • Ideally basic HTML and SQL knowledge
  • Basic computer and Internet skills

Description

In this Java web application tutorial I'll show you how to create dynamic websites using the core technologies of Java web programming. If you want to create your own interactive websites, if you know some Java and you want to take your skills to the next level, or if you want hot skills for the job marketplace, this Java web application tutorial course is for you.

In this Java web application tutorial course you'll learn how to:

  • Leverage the power of Java to create dynamic websites
  • Deploy your applications for free on the Internet
  • Use and understand core server-side Java web technologies

I'll show you how to take your basic Java knowledge and use it to create websites using the same technologies (servlets, JSPs and JSTL) that everyone from self-employed web developers to huge corporations use to create modern interactive web sites.

Who this course is for:

  • Anyone who wants to create websites that interact with databases
  • Java programmers who want to learn web programming skills
  • Java beginners who want to learn more Java and enjoy a challenge