33,144
  • JSP Tutorial #1 - Java Server Pages Tutorial - JSP Introduction

    160,860 views 2 years ago
    FULL COURSE: JSP, Servlets and JDBC (80+ videos)
    http://www.luv2code.com/jsp (SPECIAL DISCOUNT)

    ----

    This JSP tutorial series will help you quickly get up to speed with JSP.


    Download Tutorial Source Code: http://www.luv2code.com/dow......

    ----

    View more videos on the playlist: JSP Tutorial: https://goo.gl/fFVMrj

    Closed-Captioning and English subtitles available for this JSP Tutorial.

    ----

    Follow luv2code for more JSP tutorial:

    Website: http://www.luv2code.com
    YouTube: http://goo.gl/EV6Kwv
    Twitter: http://goo.gl/ALMzLG
    Facebook: http://goo.gl/8pDRdA

    ---

    If you liked my JSP tutorial, then join my mailing list: Get exclusive access to new Java tutorials.

    - http://www.luv2code.com/joi...

    ---

    Questions or problems about this JSP tutorial? Post them in the comments section below.

    ---

    Want to suggest a video for my JSP tutorial? Leave a comment below. I'm always looking for new video ideas.

    Let me know what video you'd like for me to create.

    ---

    Premium JSP Course

    Need More Details on JSP?
    - See my Premium JSP and Servlets course (80+ videos)
    - http://www.luv2code.com/jsp

    ---

    JSP Tutorial Transcript

    Hey, this is Chad "Shod" Darby, with www.luv2code.com.

    Welcome to my tutorial on JSP. IN this tutorial series we're going to cover a lot of good topics. We're going to start off with a tutorial intro which is, of course, this video, then we'll get an overview of JSP, next you'll learn how to set up your development environment and then we'll learn about installing Tomcat, installing Eclipse, and also connecting Eclipse and Tomcat together. That will take care of all the basic housekeeping that we'll need to do for setting up our development environment.

    Next we'll move forward and we'll start coding so we'll do our JSP Hello World program, then we'll learn about some different aspects of JSP. We'll discuss JSP expressions, scriplets and also JSP declarations. Then we'll look at some of the JSP built-in objects. We'll learn about including files and finally we'll learn how to import Java classes.

    This is a good start to get us going with JSP. Granted, there's a whole lot of more topics out there on JSP, this is enough to get us a quick start with JSP so we can start with JSP development.

    All right, we have a lot of good things in store. Stay tuned for all the follow on videos. Show less
    Read more
  • Hibernate Tutorial - Updated for 2018 Play all

    This Hibernate tutorial series will help you quickly get up to speed with Hibernate.

    Hey. In this video, I'm going to give you an overview of Hibernate.

    We'll cover the following topics. First off, we'll ask the question, what is Hibernate? Then, we'll go through and look at the benefits of using Hibernate, and finally, I'll show you some real quick code snippets on how to use Hibernate in an application.

    All right, so first off, what is Hibernate? Basically, Hibernate is a framework for persisting, or saving Java objects into a Database. It's a very popular framework used by a lot of enterprise Java projects. You can download it for free from Hibernate.org. I'll cover all the downloading portion of it later in another video. Basically, at a very high level, you'll have your Java application, it'll make use of this Hibernate framework and you can use it for saving and retrieving data from the Database.

    What are the benefits of Hibernate? Basically, Hibernate handles all of the low level SQL code. It actually minimizes the amount of JDBC code you have to develop. Hibernate actually provides the object to relational mapping and it makes it really easy to create apps that store and retrieve objects from the Database.

    How does it work? Again, Hibernate provides something called the object to relational mapping or you'll hear the buzzword or keyword called ORM. As a developer, you need to tell Hibernate how your Java class, or object, how it maps to data in the Database. In effect, you're going to map your Java class to a given Database table.

    In this example, on the far left we have our Java class that's a student and has four fields, ID, first name, last name, and e-mail. Note how first name and last name is spelled as far as the camelcase. We have the Hibernate framework in the middle and then on the far right we have the actual Database table. In this example, we have a table called student, it has an ID which is the primary key. There's a first name, last name, and note it's first_name, last_name , and then a field for an e-mail address. What we'll do is we'll tell Hibernate, hey, this Java class student maps to this given table and you set up the one to one mapping between the fields and the actual columns in the Database.

    Now, you can set up this mapping via a configuration file using XML or you can set it up using Java annotations and I'll cover all those technical details later in some following videos. For now, we'll just go ahead and say that there's a mapping available for mapping this class to a given Database table.

    Okay, great. Let's look at a quick example on how to save a Java object with Hibernate. The first thing we do is we create the Java object and that's standard Java, right? We just use the new keyword, new student, John Doe, John@lovetoco.com. That's the first name, last name and e-mail address. Then what we do is we actually save this Java object to a Database. Here we make use of session, which is a special Hibernate object. We say session dot save and then we pass in our object.

    What happens in the background is that Hibernate will take that Java object based on those mappings that have been defined earlier, Hibernate will take that information and store it in the appropriate table in the appropriate columns. Hibernate will do all of that work for you, which is really, really cool. If you remember back in the old days of JDBC, you would manually have to write the SQL code, manually set those values and manually execute that SQL statement. Here, Hibernate does all of that work for you which is really cool. Once you do the session dot save, then Hibernate will return the actual ID that's been assigned to that entry. This is actually the primary key. We can use that ID later if we wanted to actually retrieve that object from the Database. As you can see, it's really, really simple here to actually save a Java object using Hibernate.

    We have something in the Database, how do we retrieve it? There's a number of different options on how to retrieve objects but what I'll show you here is a very basic example about making use of the primary key. Again, some of the code here at the beginning is from the previous slide. We created the student, we saved the student, they gave us an ID which is the primary key. Now, I'm going to use that information to retrieve from the Database using that primary key. Here, I make use of the session dot get and I tell it what I want to get, a student dot class and I give the ID. Behind the scenes Hibernate will say, "Okay, let me go look at this table called student and then let me find the student whose primary key matches this ID". They'll find that student object and then return it to you and that's it. That's basically how you retrieve a Java object from the Database.
    This item has been hidden
  • Maven Tutorial - Updated for 2018 Play all

    This item has been hidden
  • JSP Tutorial - Java Server Pages Tutorial (Updated for 2018) Play all

    This JSP tutorial series will help you quickly get up to speed with JSP.

    ---

    Need more details, check out my full JSP course.

    FULL COURSE: JSP, Servlets and JDBC (80+ videos)
    http://www.luv2code.com/jsp (SPECIAL DISCOUNT)

    ---

    Download Tutorial Source Code: http://www.luv2code.com/get-youtube-jsp-code

    ---

    JSP Tutorial - What Is JSP?
    JSP (JavaServer Pages) is a popular web application solution for Java. JSP helps developers create dynamically generated HTML web pages. JSP is similar to PHP, but it uses the Java programming language instead.

    View more videos on the playlist: JSP Tutorial: https://goo.gl/fFVMrj

    Closed-Captioning and English subtitles available for this JSP Tutorial.

    ----

    Follow luv2code:

    Website: http://www.luv2code.com
    YouTube: http://goo.gl/EV6Kwv
    Twitter: http://goo.gl/ALMzLG
    Facebook: http://goo.gl/8pDRdA

    ---

    Join my JSP Tutorial mailing list: Get early access to new JSP tutorials.

    - http://www.luv2code.com/joinlist

    ---

    Questions or problems about this JSP tutorial? Post them in the comments section below.

    ---

    Want to suggest a video for this JSP tutorial? Leave a comment below. I'm always looking for new JSP Tutorial video ideas.

    Let me know what JSP Tutorial video you'd like for me to create.

    ---

    Premium JSP Course

    Need more details, check out my full JSP course.

    FULL COURSE: JSP, Servlets and JDBC (80+ videos)
    http://www.luv2code.com/jsp (SPECIAL DISCOUNT)

    ---

    JSP Tutorial Transcript

    Hey, this is Chad "Shod" Darby, with www.luv2code.com.

    Welcome to my tutorial on JSP. IN this tutorial series we're going to cover a lot of good topics. We're going to start off with a tutorial intro which is, of course, this video, then we'll get an overview of JSP, next you'll learn how to set up your development environment and then we'll learn about installing Tomcat, installing Eclipse, and also connecting Eclipse and Tomcat together. That will take care of all the basic housekeeping that we'll need to do for setting up our development environment.

    Next we'll move forward and we'll start coding so we'll do our JSP Hello World program, then we'll learn about some different aspects of JSP. We'll discuss JSP expressions, scriplets and also JSP declarations. Then we'll look at some of the JSP built-in objects. We'll learn about including files and finally we'll learn how to import Java classes.

    This is a good start to get us going with JSP. Granted, there's a whole lot of more topics out there on JSP, this is enough to get us a quick start with JSP so we can start with JSP development.

    All right, we have a lot of good things in store. Stay tuned for all the follow on videos.

    End JSP Tutorial transcript
    This item has been hidden
  • Popular uploads Play all

    This item has been hidden
  • Java JDBC Tutorial Play all

    In this playlist, you will learn how to develop Java JDBC applications that connect to a MySQL database.
    This item has been hidden
  • Java Eclipse IDE Tutorial Play all

    In this playlist, you will learn how to use the popular Eclipse Java IDE.
    This item has been hidden
  • This item has been hidden
to add this to Watch Later

Add to

Loading playlists...