Introduction to Struts 2

In this course we will learn how to use Struts 2 to create an MVC based Java web application.
Course info
Rating
(240)
Level
Intermediate
Updated
Oct 26, 2012
Duration
4h 7m
Table of contents
Introduction to Struts2
Building Your First Application
Actions
Results
OGNL
Tags
Validation
Ajax
Description
Course info
Rating
(240)
Level
Intermediate
Updated
Oct 26, 2012
Duration
4h 7m
Description

Struts 2 is a framework for developing MVC based web applications in Java. When building a complex web application it is often difficult to keep business and view logic separate from each other. In this course we will learn how to create a Java based web application using the Struts 2 MVC framework to cleanly separate our views from business logic. We will cover important features of Struts 2 like creating Actions and mapping them to Results. We will also learn how to use OGNL to access data from Java objects inside of our Views and even see how to create AJAX style views. If you are interesting in learning Struts 2, this course is a great start point to get you started by building your first Struts 2 application.

About the author
About the author

John Sonmez is the founder of Simple Programmer (http://simpleprogrammer.com), where he tirelessly pursues his vision of transforming complex issues into simple solutions

More from the author
Beginning Lua
Intermediate
2h 50m
2 Dec 2013
Beginning HTML 5 Game Development With Quintus
Intermediate
2h 52m
25 Oct 2013
Beginning HTML5 Apps For Firefox OS
Intermediate
2h 20m
17 Oct 2013
More courses by John Sonmez
Section Introduction Transcripts
Section Introduction Transcripts

Introduction to Struts2
Hi, this is John Sonmez from Pluralsight and welcome to this course on Struts 2. This is an introductory level course in Struts 2, so it doesn't really assume that you have any knowledge of Struts, but you probably are going to want to have it at least a basic understanding of Java and some Java web technologies to be successful in this course. And this course, we are going to be learning about Struts 2 which is a web application framework for developing enterprise Java applications. And in this module, we're going to be talking about what Struts 2 is and just getting a basic idea of what Struts 2 can do for us, how Struts 2 works and where Struts 2 came from.

Building Your First Application
Hi, this is John Sonmez from Pluralsight. And in this module, we're going to see how to create an actual basic Struts 2 application. We're going to see all the steps that are required, talk a little bit about the prerequisites that you'll need in order to get started and basically get our environment set up so that we can start developing in the Struts framework.

Actions
Hi, this is John Sonmez from Pluralsight. And in this module we're going to be looking at Actions in Struts 2. Actions are really a very important part of Struts 2 because they-- basically are the gateway to everything else that happens in our Struts 2 application. So it's very critical to understand exactly what Actions are and how we can use them in order to build a successful Struts 2 application.

Results
Hi! This is John Sonmez from Pluralsight. In this module, we're going to be covering one of the things that I find the most interesting about struts-2 which is the results. And results are neatly integrated into the framework. So, many times you don't even realize how much is going on behind the scenes when you are basically getting JSP page or you're getting some kind of result from your action. In this module, we're going to see a little bit about exactly what's happening behind the scenes. We're going to talk about the different types of results that exist and how to use them, and we're going to see just how powerful results can be.

OGNL
Hi, this is John Sonmez from Pluralsight. And in this module we're going to be talking about OGNL. And OGNL is a very important part of Struts 2. You'll see that it's tightly integrated into the entire framework, and we've already been using it, we just didn't know it. But in this module, we're going to go into a little bit more depth and really understand what OGNL is and how it works and see some of the basic syntax so that we can use it a little bit better inside of our Struts 2 applications.

Tags
Hi. This is John Sonmez from Pluralsight. And in this module, we're going to be discussing tags in Struts 2. So, so far we've been using tags in our application, but we haven't really talked much about the actual tags. In this module, we're going to actually be discussing the tags and talk about the different types of tags. And how we might use them, and we're going to see some examples of using those tags as we expand the protein tracker application to be able to store the goal protein.

Validation
Hi, this is John Somnez from Pluralsight. And in this module, we're going to be taking a look at validation in struts 2. So up to this point, we haven't really talk much about validation, but struts2 has a pretty robust validation framework that we can utilize to validate the fields and our forms and to validate our actions and we can use this framework to save us the hassle of having to do the manual process of creating field labels that say when there is an error in handling validation ourselves. We just have to implement a few simple interfaces or use a few simple annotations on our classes in order to get validation working.

Ajax
Hi, this is John Sonmez from Pluralsight. And in this module, we're going to be looking at adding Ajax to our Struts2 application. So, so far, we've just been doing traditional web development where we've been submitting our request, submitting our forms, and reloading the page. But most web applications today use Ajax in some form. And even though Struts2 is a fairly older framework, it does support Ajax and it's actually fairly easy to get Ajax going with an existing Struts2 application. So in this module, I'm going to show you how to do that. And we're going to talk a little bit about Ajax 'cause this is a refresher. And we're going to discuss some of the options that you have for adding Ajax to your application.