develop java web apps with angularjs - koenig solutions · develop java web apps with angularjs ......

3
Develop Java Web Apps with AngularJS Introduction to Web Application Technologies Web Application Technologies HTTP Client Server Architecture Web Site Structure Web Sites and Web Applications Execution of Java Servlets Advantages and Disadvantages of Java Servlets Using Separate Processes or Using Threads Java Servlets JavaServer Pages™ Technology Concerns When Using Servlets and JSP™ Web Application – Three Tier Architecture Model View Controller (MVC) Architecture in a Web Java EE Containers Developing a Controller Component Designing Controller Components Types of Controller Components Add a New League Analysis Model Add a New League Page Flow Form Verification Soccer League Web Structure Creating an HTML Form Add a New League Web Form The form Tag Textfield Component Drop Down List Component Submit Button Complete HTML Form How Form Data Is Sent in an HTTP Request Form Data in the HTTP Request HTTP GET Method Request HTTP POST Method Request HTTP GET and POST Methods Developing a Controller Servlet Add a New League Use Case Revisited Servlet API to Retrieve Form Parameters Developing the AddLeagueServlet Servlet Dispatching From the Controller to a View Add a New League Use Case (Stage ) Request Scope Using a Request Dispatcher Developing the AddLeagueServlet Code Developing the SuccessServlet Code Developing JSP Pages JavaServer Pages Technology How a JSP Page Is Processed Developing and Deploying JSP Pages Writing JSP Scripting Elements Comments Directive Tag Declaration Tag Scriptlet Tag Expression Tag Implicit Variables Using the page Directive Using Standard Tags Other Standard Tags Using Expression Language (EL) Elements

Upload: buikhue

Post on 13-Dec-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Develop Java Web Apps with AngularJS - Koenig Solutions · Develop Java Web Apps with AngularJS ... Advantages and Disadvantages of Java Servlets ... Invoking Angular . Loading the

Develop Java Web Apps with AngularJS

Introduction to Web Application Technologies Web Application Technologies HTTP Client Server Architecture Web Site Structure Web Sites and Web Applications Execution of Java Servlets Advantages and Disadvantages of Java Servlets Using Separate Processes or Using Threads Java Servlets JavaServer Pages™ Technology Concerns When Using Servlets and JSP™ Web Application – Three Tier ArchitectureModel View Controller (MVC) Architecture in a Web Java EE Containers

Developing a Controller Component Designing Controller Components Types of Controller Components Add a New League Analysis Model Add a New League Page Flow Form Verification Soccer League Web StructureCreating an HTML Form Add a New League Web Form The form Tag Textfield Component Drop Down List Component Submit Button Complete HTML FormHow Form Data Is Sent in an HTTP Request Form Data in the HTTP RequestHTTP GET Method Request HTTP POST Method Request HTTP GET and POST Methods Developing a Controller Servlet Add a New League Use Case Revisited Servlet API to Retrieve Form Parameters Developing the AddLeagueServlet Servlet Dispatching From the Controller to a View Add a New League Use Case (Stage ) Request Scope Using a Request DispatcherDeveloping the AddLeagueServlet Code Developing the SuccessServlet Code

Developing JSP Pages JavaServer Pages Technology How a JSP Page Is Processed Developing and Deploying JSP Pages Writing JSP Scripting Elements Comments Directive Tag Declaration Tag Scriptlet Tag Expression Tag Implicit Variables Using the page Directive Using Standard Tags Other Standard Tags Using Expression Language (EL) Elements

Page 2: Develop Java Web Apps with AngularJS - Koenig Solutions · Develop Java Web Apps with AngularJS ... Advantages and Disadvantages of Java Servlets ... Invoking Angular . Loading the

Syntax Overview Bean Access Using EL Unified Expression Language Arithmetic Operators Comparisons and Logical Operators Configuring the JSP Environment Developing Web Applications Using Session Management HTTP and Session Management Web Container Sessions Designing Web Applications to Use Session Management Registration Use Case Example Registration Use Case Analysis Model Using Session Management in a Web Application Session API Storing Session Attributes Accessing Session Attributes Destroying the Session Using Cookies for Session Management Cookie API Using Cookies Example Performing Session Management Using Cookies Using URL Rewriting for Session Management URL Rewriting Implications Introduction to AngularJS Client Side Templates Model View Controller (MVC) Data Binding Dependency Injection Directives An Example: Shopping Cart Anatomy of an AngularJS Application Invoking Angular Loading the Script Declaring Angular’s Boundaries with ng app Model View Controller Templates and Data Binding Displaying Text Form Inputs A Few Words on Unobtrusive JavaScript Lists, Tables, and Other Repeated Elements Hiding and Showing CSS Classes and Styles Considerations for src and href Attributes Expressions Separating UI Responsibilities with Controllers Publishing Model Data with Scopes Observing Model Changes with $watch Performance Considerations in watch() Organizing Dependencies with Modules How Many Modules Do I Need? Formatting Data with Filters Changing Views with Routes and $location index .html list. html detail. html controllers . js Talking to Servers Changing the DOM with Directives Index. html

Page 3: Develop Java Web Apps with AngularJS - Koenig Solutions · Develop Java Web Apps with AngularJS ... Advantages and Disadvantages of Java Servlets ... Invoking Angular . Loading the

controllers js Validating User Input Analyzing an AngularJS App The Application Relationship Between Model, Controller, and Template The Model Controllers, Directives, and Services, Oh My! Services Directives Controllers The Templates The Tests Unit Tests Scenario Tests Communicating with Servers Communicating Over $http Configuring Your Request Further Setting HTTP Headers Caching Responses Transformations on Requests and Responses Unit Testing Working with RESTful Resources The Declaration Custom Methods No Callbacks! (Unless You Really Want Them) Simplified Server Side Operations Unit Test the ngResource The $q and the Promise Response Interception Security Considerations JSON Vulnerability Directives Directives and HTML Validation API Overview Naming Your Directive The Directive Definition Object Transclusion Compile and Link Functions Scopes Manipulating DOM Elements Controllers Integrating Web Applications With Databases Mapping Sample Data Structures into Database Entities Designing a Web Application Domain Objects Database Tables Data Access Object (DAO) Pattern DAO Pattern Advantages JDBC™ API Developing a Web Application Using a Database Traditional Approaches to Database Connections Using a DataSource and the JNDI API Configuring a DataSource and the JNDI API