Https://flic.kr/p/4MRZPn MVC Controllers.

Slides:



Advertisements
Similar presentations
Introduction to MVC Action Methods, Edit View, and a Search Feature NTPCUG Dr. Tom Perkins.
Advertisements

Reference and Instruction Automated Statistics Gathering and Reporting System Members: Patrick Chen (pyc7) Soo-Yung Cho (sc444) Gregg Herlacher (gah24)
Design Aspects. User Type the URL address on the cell phone or web browser Not required to login.
Apache Tomcat Server Typical html Request/Response cycle
Creating your website Using Plain HTML. What is HTML? ► Web pages are authored in HyperText Markup Language (HTML) ► Plain text is marked up with tags,
Figure 1. Hit analysis in 2002 of database-driven web applications Hits by Category in 2002 N = 73,873 Results Reporting 27% GME 26% Research 20% Bed Availability.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Server-side Scripting Powering the webs favourite services.
CPT 123 [299] Internet Skills Overview of the Internet Session One Class Notes DMWilliamson 1998.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Create, Update and Delete Carol Wolf Computer Science.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
Enter the URL Enter the URL. 2. Enter the Password 1. Enter the login ID 3. Click on submit button 3. Click on submit button.
1 State and Session Management HTTP is a stateless protocol – it has no memory of prior connections and cannot distinguish one request from another. The.
Paramount Health Group Benefit Portal for HUAWEI Employees
How to Use Your Committee Workspace. Click Here AFPMB Homepage.
Ruby on Rails Controller of MVC. Routes How we map URIs like /tweets/1 to calling the show method of the Controller.
Rails and routing INFO 2310: Topics in Web Design and Programming.
How Web Database Architectures Work CPS181s April 8, 2003.
A Member of StarDyne Technologies Revised on April 7, 2013 Task Manager QUICK REFERENCE FOR AUTHORIZERS.
BIT 286: Web Applications Lecture 04 : Thursday, January 15, 2015 ASP.Net MVC -
Kamdhenu Website is used to Add agent in Kamdhenu offer under Group head Pfiger Software Technologies Pvt. Ltd.
Routes Carol Wolf Computer Science. RESTful Architecture  Rails uses REST-style architecture: representation state transfer  resources :courses in routes.rb.
MVC Controllers TestsMigrations Ye Olde Internet Model DB Server Router View Browser Today’s focus Controller.
Jim Fawcett CSE686 – Internet Programming Summer 2010
Jim Fawcett CSE686 – Internet Programming Spring 2014
Databases and the MVC Model
An introduction to ASP.Net with MVC Nischal S
Overview Blogs and wikis are two Web 2.0 tools that allow users to publish content online Blogs function as online journals Wikis are collections of searchable,
Section 6.3 Server-side Scripting
HTTP AND ABSTRACTION ON THE INTERNET
Jim Fawcett CSE686 – Internet Programming Spring 2012
Using E-Business Suite Attachments
JavaScript and Ajax (Internet Background)
Active Server Pages Computer Science 40S.
MVC Architecture, Symfony Framework for PHP Web Apps
Introduction to Persistent Identifiers
Section 13 - Integrating with Third Party Tools
1993 version of Mosaic browser.
CNIT 131 Internet Basics & Beginning HTML
Play Framework: Introduction
Server sends index-HTML-Code Enter in Browser (localhost/name) Local Server Browser Requests Data Server sends index-HTML-Code.
Web Software Model CS 4640 Programming Languages for Web Applications
Networks Problem Set 1 Due Oct 3 Bonus Date Oct 2
CMPE 280 Web UI Design and Development October 24 Class Meeting
How the VIAF Magic Happens
REST.
Web Systems Development (CSC-215)
Servlet APIs Every servlet must implement javax.servlet.Servlet interface Most servlets implement the interface by extending one of these classes javax.servlet.GenericServlet.
Video list editor BIS1523 – Lecture 24.
Objectives In this lesson you will learn about: Need for servlets
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
Hyper Text Transfer Protocol
Lecture 5: Functions and Parameters
Request Form You gain access to the Request Form from your intranet set-up by your IT dept. Or the internet via either our desktop launcher icon. Or a.
Databases and the MVC Model
Databases and the MVC Model
Cancel a room booking No No No Next page Yes Yes Yes No Yes Next page
Back end Development CS Programming Languages for Web Applications
MVC Controllers.
Security: Authentication & Authorization
Databases and the MVC Model
MVC Controllers.
Databases and the MVC Model
Client-Server Model: Requesting a Web Page
Information Retrieval and Web Design
Your computer is the client
Back end Development CS Programming Languages for Web Applications
Chengyu Sun California State University, Los Angeles
© 2017, Mike Murach & Associates, Inc.
Presentation transcript:

https://flic.kr/p/4MRZPn MVC Controllers

Today’s focus Ye Olde Internet Browser Migrations Tests DB Server View Router Controller Model

5 Basic Controller Patterns Create new/create: Enter a new record Read index: List all records show: Display a particular record Update edit/update: Modify an existing record Delete destroy: Remove a record

5 Basic Controller Patterns Create new/create: Enter a new record Read index: List all records show: Display a particular record Update edit/update: Modify an existing record Delete destroy: Remove a record

index Page

How to implement index? Ye Olde Internet Browser DB Server View Router Controller Model

How to implement index? Route “authors” URL pattern Browser How to implement index? Route “authors” URL pattern Controller uses Model to retrieve all records Controller uses View to generate HTML (passes records to View) Ye Olde Internet DB Server View 3 1 Router Controller 2 Model

show Page

How to implement index? Ye Olde Internet Browser DB Server View Router Controller Model

How to implement index? Route “author” URL pattern Browser How to implement index? Route “author” URL pattern Controller uses Model to retrieve record with id in URL Controller uses View to generate HTML (passes record to View) Ye Olde Internet DB Server View 3 1 Router Controller 2 Model

5 Basic Controller Patterns Create new/create: Enter a new record Read index: List all records show: Display a particular record Update edit/update: Modify an existing record Delete destroy: Remove a record ✔ ✔

new Form

How many HTTP requests does it take to create a record? Browser How many HTTP requests does it take to create a record? Ye Olde Internet DB Server View Router Controller Model

How many HTTP requests does it take to create a record? Browser How many HTTP requests does it take to create a record? Two: One to request a form (GET) One to perform the add (POST) Ye Olde Internet DB Server View Router Controller Model

How to implement get form? Browser How to implement get form? Ye Olde Internet DB Server View Router Controller Model

How to implement get form? Browser How to implement get form? Route URL pattern Controller uses View to generate HTML (passes View records) Ye Olde Internet DB Server View 2 1 Router Controller Model

How to implement post new record? Browser How to implement post new record? Ye Olde Internet DB Server View Router Controller Model

How to implement post new record? Browser How to implement post new record? Route URL pattern Controller uses Model to add rec Controller sends HTTP redirect Ye Olde Internet DB Server View 3 1 Router Controller 2 Model

5 Basic Controller Patterns Create new/create: Enter a new record Read index: List all records show: Display a particular record Update edit/update: Modify an existing record Delete destroy: Remove a record ✔ ✔ ✔ Like create Needs explaining…

Appendix

5 Basic Controller Patterns Create new/create: Enter a new record Read index: List all records show: Display a particular record Update edit/update: Modify an existing record Delete destroy: Remove a record

Ye Olde Internet Browser Migrations Tests DB Server View Router Controller Model

edit Form

destroy Link