Today is Tuesday, 17th January 2017

Archive for November, 2015


JSF Tutorial #19 – JavaServer Faces Tutorial (JSF 2.2) – Summary and Premium Course Discount

In this video, I summarize the JSF tutorial and also discuss a special discount for the course.

Please SUBSCRIBE to my YouTube channel.

 


Download JSF Source Code

# Video
1 Introduction
2 JavaServer Faces Overview
3 Setting up your Development Environment - Overview
4 Installing Tomcat - MS Windows
5 Installing Tomcat - Mac OS X
6 Installing Eclipse - MS Windows
7 Installing Eclipse - Mac OS X
8 Connecting Eclipse to Tomcat
9 JSF Behind the Scenes
10 JSF HelloWorld
11 Creating JSF HTML Forms
12 JSF Forms and Managed Beans
13 Drop-Down Lists - Part 1
14 Drop-Down Lists - Part 2
15 Radio Buttons
16 Check Boxes
17 Prepopulating Forms
18 Recommended JSF Books and Resources

Do You Need More Details?

  • Do you need to connect to a database?
  • Display SQL results in a HTML table?
  • Perform SQL insert, updates and deletes?
I have a premium course that shows you how to complete all of these tasks.
  • Database Integration with JDBC
  • Displaying Data in Lists and Tables
  • Validating HTML Forms
  • Implementing Business Logic with Managed Beans
  • Deploying applications with WAR Files
Read more about the premium course at http://www.luv2code.com/jsf-for-beginners

Follow luv2code with the links below:

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

The most popular JSF Tutorial online: http://www.luv2code.com/jsf

Share


JSF Tutorial #18 – JavaServer Faces Tutorial (JSF 2.2) – Recommended Books and Projects

In this video, I give you a list of recommended JSF books and projects.

Please SUBSCRIBE to my YouTube channel.

 


Download JSF Source Code

# Video
1 Introduction
2 JavaServer Faces Overview
3 Setting up your Development Environment - Overview
4 Installing Tomcat - MS Windows
5 Installing Tomcat - Mac OS X
6 Installing Eclipse - MS Windows
7 Installing Eclipse - Mac OS X
8 Connecting Eclipse to Tomcat
9 JSF Behind the Scenes
10 JSF HelloWorld
11 Creating JSF HTML Forms
12 JSF Forms and Managed Beans
13 Drop-Down Lists - Part 1
14 Drop-Down Lists - Part 2
15 Radio Buttons
16 Check Boxes
17 Prepopulating Forms
18 Recommended JSF Books and Resources

Do You Need More Details?

  • Do you need to connect to a database?
  • Display SQL results in a HTML table?
  • Perform SQL insert, updates and deletes?
I have a premium course that shows you how to complete all of these tasks.
  • Database Integration with JDBC
  • Displaying Data in Lists and Tables
  • Validating HTML Forms
  • Implementing Business Logic with Managed Beans
  • Deploying applications with WAR Files
Read more about the premium course at http://www.luv2code.com/jsf-for-beginners

Follow luv2code with the links below:

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

JSF Tutorial Transcript:

Hello. In this video, I’m going to discuss some JSF resources. I’ve had a number of students who’ve asked about additional JSF books, and also some samples of JSF projects, and so I’ll cover that, in this video. In regards to books, I actually recommend the following JSF books. There’s two of them that I highly recommend. The first one here is The Complete Reference JavaServer Faces 2.0, and the author is Ed Burns. Now, Ed Burns is the JSF specification lead, so he’s kind of in charge of JSF. Really smart guy, and he provides a lot of good insight in this book. The book has a list of best practices, code examples, and so forth. You can actually purchase this book online. You can go to http://www.luv2code.com/jsfbook1, and this’ll take you directly to the page where you can purchase this book.

Another book that I highly recommend is called Mastering Java Server Faces 2.2. it’s written by Anghel Leonard. Again, another really good book. This book actually covers a lot of advanced topics, and concepts that you won’t find in other locations, so I highly recommend this book, also. Again, you can purchase this book directly, at http://www.luv2code.com/jsfbook2. All right. Now, that covers the books.

Another thing that folks commonly as me about, they’ll say, “Hey, Chad, what about some examples of open source projects that make use of JSF,” and they’re looking for a large scale enterprise project. The one that I always recommend here is called the Cargo Tracker. This is a project that’s actually written by developers at Oracle, and they basically built a large scale, Java EE application, and they made use of JSF for the web front end. They have a lot of other Java EE technologies, but they use JSF for the front end. I highly recommend this. You can go to the website here at https://cargotracker.java.net.

You can actually download the source code for it. They also have instructions on how to run the application. Again, just a fair warning, it’s a large project, but it’s really good, because it shows a large scale Java EE project that makes use of JSF. You can look at some of the patterns, and techniques that they use for their project. Alrighty, so this wraps up the video. Basically, I just wanted to give you a list of some recommend books, and also just inform you about the Cargo Tracker application, which is a large scale Java EE app that makes use of JSF.

Share


JSP Tutorial #13 – Java Server Pages Tutorial – Including Files

In this video, I show you how to include files in JSP pages.

Please SUBSCRIBE to my YouTube channel.

 


 

# Video
1 Introduction
2 JSP Overview
3 Setting up your Development Environment - Overview
4 Installing Tomcat
5 Installing Eclipse
6 Connecting Eclipse to Tomcat
7 JSP Hello World
8 JSP Expressions
9 JSP Scriptlets
10 JSP Declarations
11 Importing Java Classes
12 JSP Built-In Objects
13 Including Files

Do You Need More Details?

  • How to read form data with JSP?
  • How to use cookies and sessions?
  • Develop MVC application with JSP and Servlets?
I have a premium course that shows you how to complete all of these tasks.

Read more about the premium course at http://www.luv2code.com/jsp

Follow luv2code with the links below:

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

JSP Tutorial Transcript:

Hello. In this video, I’m going to show you how to use JSP for including other files. The common used place for including files is including standard headers and footers. Say for example you’re building a website and you want to have the same header and footer information displayed on every page. You can simply create the header and footer in separate files and include them in your JSP files. All right, so when you include a file you can include either HTML files or JSP files. It’s totally up to you. At the top here, I do a jsp:include and page=”my-header.html”. A similar thing here at the bottom, I can do a jsp:include page=”my-footer.jsp”. That’s it. Very simple, very straightforward.

All right so let’s go ahead and try this out, so let’s move into Eclipse. What I’d like to do is to continue to use that existing project, jspdemo. Let’s move down to the web content folder, and what I want to do first is create those files I’m going to include. First I’m going to create the header files. I’ll say “New”, “File” and I’ll give the file name of “my-header.html”, so that’s the header that we’re going to include. When you’re happy with the file name here, click finish. For the header, I simply want to give the name “JSP Tutorial”, so I’m going to set up H1, and I’ll make the alignment for it to be center. Then inside the tag here, I’ll just say “JSP Tutorial”, so this will be including on all pages for my given website that I’m just making up right now. I’ll go ahead and save this file, so this is our header file that we have set up right now.

Now let’s over and let’s create our footer. So again, on WebContent I’ll do a right-click, I’ll say “New”, “File”, and I’ll call it “my-footer.jsp”. In the footer we actually want to add some JSP coding. Once we’re happy with the file name, go ahead and click finish. For here, for the footer, for every page I want to give the time the page was last modified. Or, we’re just going to kind of make this up, actually. So here’s I’ll just say, “Last Modified” or “Last Updated” and I’ll just drop in the actual date timestamp. That way all of our pages every time a user will visit our website. Now I’ll just hit the save button.

Okay, great. So now at this point, we have our header complete and we also have our footer complete. Now we can go ahead and create our main page that’s actually going to include these files. I move over to the WebContent folder, I’ll do a right-click, I’ll say “New”, “File”, and I’ll call this, “homepage.jsp”. Once we’re happy with the name here, we’ll click finish. On this homepage, what we’re going to do is we’re actually going to include information from the headers and the footers, and also we’ll put some of our regular content here. I do the standard work here for our HTML in our body. Now what I want to do is import or include the header. So I’ll say jsp:include, I give page=”my-header.html”. Now I can enter some regular content that I’ll have on my homepage. Here I’m just going to put in some filler stuff, just some blah blah blah. Just to you know, placeholders here. Then I’ll copy this line x number of times, just to kind of fill it up a little bit. So that’s our content. Let’s go ahead and include our footer. I’ll say jsp:include page=”my-footer.jsp”, because our footer is a jsp file. Again, it an go either way. HTML or JSP, depending on how you want to build out your pages. That’s it. I can go ahead and save this file and then I can go ahead and run it.

All right so I can move over to this file homepage.jsp. I can do a right-click, then I can say, “Run As” and then “Run on Server”. Okay, great. This looks really good. Up top we have our header file that we included, JSP Tutorial. Then we have all of our body, all of our blah blah blah stuff. Then we have the actual footer, and then notice how the footer is a JSP and it included the current timestamp when this page was access. Our site will always look fresh as far as our fresh content. Which is a good thing, right? So good job. In this video I showed you how to build JSP pages by including other files.

Share