SlideShare a Scribd company logo
Overview of Design Patterns
             &
 The MVC Design Pattern
         Sapana Mehta
Sapana Mehta (CS-6V81)


                    J2EE

• Components
   – Enterprise Java Beans (EJB)
   – Java Server Pages (JSP)
   – Servlets
• Containers (service providers)
   – Web container
   – Bean Container
• Connectors (connection service providers)
Sapana Mehta (CS-6V81)
Sapana Mehta (CS-6V81)


     J2EE and Design Patterns

• J2EE: AN OPERATING SYSTEM FOR THE WEB
  Enterprise web applications, which live on
  networks and are accessible through
  browsers, are redefining Enterprise Web
  Software. This is the next wave of computing.


• The J2EE architecture is built to enable
  component developers to use a Model View
  Controller (MVC) Design Pattern.
Sapana Mehta (CS-6V81)


        MVC continued

• Model encapsulates the core data and
  functionality
• View encapsulates the presentation of the data
  there can be many views of the common data
• Controller accepts input from the user and
  makes request from the model for the data to
  produce a new view.
Sapana Mehta (CS-6V81)


MVC Structure for J2EE
Sapana Mehta (CS-6V81)


             MVC Architecture
• The Model represents the structure of the data in the
  application, as well as application-specific operations
  on those data.

• A View (of which there may be many) presents data in
  some form to a user, in the context of some
  application function.

• A Controller translates user actions (mouse
  motions, keystrokes, words spoken, etc.) and user
  input into application function calls on the model, and
  selects the appropriate View based on user preferences
  and Model state.
Sapana Mehta (CS-6V81)


           Advantages of MVC

• Separating Model from View (that is,
  separating data representation from
  presentation)
  - easy to add multiple data presentations for
    the same data,
  -facilitates adding new types of data
  presentation as technology develops.
  -Model and View components can vary
  independently enhancing maintainability,
  extensibility, and testability.
Sapana Mehta (CS-6V81)

     Advantages of MVC design
             Pattern
• Separating Controller from View (application behavior
   from presentation)
   - permits run-time selection of appropriate
    Views based on workflow, user preferences,
    or Model state.
• Separating Controller from Model (application behavior
   from data representation)
  - allows configurable mapping of user actions
    on the Controller to application functions on
    the Model.
Sapana Mehta (CS-6V81)


    Consequences or Benefits

• We make changes without bringing down the
  server.
• We leave the core code alone
• We can have multiple versions of the same
  data displayed
• We can test our changes in the actual
  environment.
• We have achieved “separation of concerns”
Ad

More Related Content

What's hot (20)

Workshop 21: React Router
Workshop 21: React RouterWorkshop 21: React Router
Workshop 21: React Router
Visual Engineering
 
ReactJS presentation.pptx
ReactJS presentation.pptxReactJS presentation.pptx
ReactJS presentation.pptx
DivyanshGupta922023
 
Jsp ppt
Jsp pptJsp ppt
Jsp ppt
Vikas Jagtap
 
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVMJava Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
shamnasain
 
Java 8 Lambda Built-in Functional Interfaces
Java 8 Lambda Built-in Functional InterfacesJava 8 Lambda Built-in Functional Interfaces
Java 8 Lambda Built-in Functional Interfaces
Ganesh Samarthyam
 
Core java complete ppt(note)
Core java  complete  ppt(note)Core java  complete  ppt(note)
Core java complete ppt(note)
arvind pandey
 
QSpiders - Jdk Jvm Jre and Jit
QSpiders - Jdk Jvm Jre and JitQSpiders - Jdk Jvm Jre and Jit
QSpiders - Jdk Jvm Jre and Jit
Qspiders - Software Testing Training Institute
 
Lecture - 2 Environment setup & JDK, JRE, JVM
Lecture - 2 Environment setup & JDK, JRE, JVMLecture - 2 Environment setup & JDK, JRE, JVM
Lecture - 2 Environment setup & JDK, JRE, JVM
manish kumar
 
This keyword in java
This keyword in javaThis keyword in java
This keyword in java
Hitesh Kumar
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
slire
 
JAVA AWT
JAVA AWTJAVA AWT
JAVA AWT
shanmuga rajan
 
Lets make a better react form
Lets make a better react formLets make a better react form
Lets make a better react form
Yao Nien Chung
 
Database Access With JDBC
Database Access With JDBCDatabase Access With JDBC
Database Access With JDBC
Dharani Kumar Madduri
 
Php
PhpPhp
Php
Ajaigururaj R
 
JavaFX Overview
JavaFX OverviewJavaFX Overview
JavaFX Overview
José Maria Silveira Neto
 
Java API
Java APIJava API
Java API
'Gurumukhi' Vaishnav
 
Summer internship report
Summer internship reportSummer internship report
Summer internship report
Ipsit Pradhan
 
JVM
JVMJVM
JVM
baabtra.com - No. 1 supplier of quality freshers
 
Applets in java
Applets in javaApplets in java
Applets in java
Wani Zahoor
 
Spring Boot
Spring BootSpring Boot
Spring Boot
koppenolski
 

Viewers also liked (14)

J2EE Introduction
J2EE IntroductionJ2EE Introduction
J2EE Introduction
Patroklos Papapetrou (Pat)
 
Design patterns
Design patternsDesign patterns
Design patterns
revamptechnologies
 
Java Server Pages
Java Server PagesJava Server Pages
Java Server Pages
Shah Nawaz Bhurt
 
Jsp
JspJsp
Jsp
Priya Goyal
 
Implicit object.pptx
Implicit object.pptxImplicit object.pptx
Implicit object.pptx
chakrapani tripathi
 
Jsp element
Jsp elementJsp element
Jsp element
kamal kotecha
 
Implicit objects advance Java
Implicit objects advance JavaImplicit objects advance Java
Implicit objects advance Java
Darshit Metaliya
 
J2EE and layered architecture
J2EE and layered architectureJ2EE and layered architecture
J2EE and layered architecture
Suman Behara
 
JSP
JSPJSP
JSP
vikram singh
 
MVC ppt presentation
MVC ppt presentationMVC ppt presentation
MVC ppt presentation
Bhavin Shah
 
Web Services (SOAP, WSDL, UDDI)
Web Services (SOAP, WSDL, UDDI)Web Services (SOAP, WSDL, UDDI)
Web Services (SOAP, WSDL, UDDI)
Peter R. Egli
 
Model View Controller (MVC)
Model View Controller (MVC)Model View Controller (MVC)
Model View Controller (MVC)
Javier Antonio Humarán Peñuñuri
 
Mvc architecture
Mvc architectureMvc architecture
Mvc architecture
Surbhi Panhalkar
 
Cookies and sessions
Cookies and sessionsCookies and sessions
Cookies and sessions
Lena Petsenchuk
 
Ad

Similar to Jsp with mvc (20)

Mvc pattern and implementation in java fair
Mvc   pattern   and implementation   in   java fairMvc   pattern   and implementation   in   java fair
Mvc pattern and implementation in java fair
Tech_MX
 
MVC Framework
MVC FrameworkMVC Framework
MVC Framework
Ashton Feller
 
J2 ee archi
J2 ee archiJ2 ee archi
J2 ee archi
saurabhshertukde
 
Web tier-framework-mvc
Web tier-framework-mvcWeb tier-framework-mvc
Web tier-framework-mvc
KashfUlHuda1
 
Struts(mrsurwar) ppt
Struts(mrsurwar) pptStruts(mrsurwar) ppt
Struts(mrsurwar) ppt
mrsurwar
 
Technoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesTechnoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development services
Aaron Jacobson
 
Asp.net,mvc
Asp.net,mvcAsp.net,mvc
Asp.net,mvc
Prashant Kumar
 
Software Design Patterns
Software Design PatternsSoftware Design Patterns
Software Design Patterns
alkuzaee
 
Spring Web Presentation 123143242341234234
Spring Web Presentation 123143242341234234Spring Web Presentation 123143242341234234
Spring Web Presentation 123143242341234234
horiadobrin
 
Spring mvc
Spring mvcSpring mvc
Spring mvc
Pravin Pundge
 
Asp.net mvc basic introduction
Asp.net mvc basic introductionAsp.net mvc basic introduction
Asp.net mvc basic introduction
Bhagath Gopinath
 
Introduction to ASP.NET Core MVC and the MVC Pattern.pptx
Introduction to ASP.NET Core MVC and the MVC Pattern.pptxIntroduction to ASP.NET Core MVC and the MVC Pattern.pptx
Introduction to ASP.NET Core MVC and the MVC Pattern.pptx
QuickwayInfoSystems3
 
IRJET- MVC Framework: A Modern Web Application Development Approach and Working
IRJET- MVC Framework: A Modern Web Application Development Approach and WorkingIRJET- MVC Framework: A Modern Web Application Development Approach and Working
IRJET- MVC Framework: A Modern Web Application Development Approach and Working
IRJET Journal
 
What is ASP.NET MVC
What is ASP.NET MVCWhat is ASP.NET MVC
What is ASP.NET MVC
Brad Oyler
 
Mvc Brief Overview
Mvc Brief OverviewMvc Brief Overview
Mvc Brief Overview
rainynovember12
 
Mcv design patterns
Mcv design patternsMcv design patterns
Mcv design patterns
Rob Paok
 
ASP.Net | Sabin Saleem
ASP.Net | Sabin SaleemASP.Net | Sabin Saleem
ASP.Net | Sabin Saleem
SaBin SaleEm
 
Interaction-Oriented Architecture.pptx
Interaction-Oriented Architecture.pptxInteraction-Oriented Architecture.pptx
Interaction-Oriented Architecture.pptx
Godwin Monserate
 
Architectural Design & Patterns
Architectural Design&PatternsArchitectural Design&Patterns
Architectural Design & Patterns
Inocentshuja Ahmad
 
SaaS transformation with OCE - uEngineCloud
SaaS transformation with OCE - uEngineCloudSaaS transformation with OCE - uEngineCloud
SaaS transformation with OCE - uEngineCloud
uEngine Solutions
 
Mvc pattern and implementation in java fair
Mvc   pattern   and implementation   in   java fairMvc   pattern   and implementation   in   java fair
Mvc pattern and implementation in java fair
Tech_MX
 
Web tier-framework-mvc
Web tier-framework-mvcWeb tier-framework-mvc
Web tier-framework-mvc
KashfUlHuda1
 
Struts(mrsurwar) ppt
Struts(mrsurwar) pptStruts(mrsurwar) ppt
Struts(mrsurwar) ppt
mrsurwar
 
Technoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesTechnoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development services
Aaron Jacobson
 
Software Design Patterns
Software Design PatternsSoftware Design Patterns
Software Design Patterns
alkuzaee
 
Spring Web Presentation 123143242341234234
Spring Web Presentation 123143242341234234Spring Web Presentation 123143242341234234
Spring Web Presentation 123143242341234234
horiadobrin
 
Asp.net mvc basic introduction
Asp.net mvc basic introductionAsp.net mvc basic introduction
Asp.net mvc basic introduction
Bhagath Gopinath
 
Introduction to ASP.NET Core MVC and the MVC Pattern.pptx
Introduction to ASP.NET Core MVC and the MVC Pattern.pptxIntroduction to ASP.NET Core MVC and the MVC Pattern.pptx
Introduction to ASP.NET Core MVC and the MVC Pattern.pptx
QuickwayInfoSystems3
 
IRJET- MVC Framework: A Modern Web Application Development Approach and Working
IRJET- MVC Framework: A Modern Web Application Development Approach and WorkingIRJET- MVC Framework: A Modern Web Application Development Approach and Working
IRJET- MVC Framework: A Modern Web Application Development Approach and Working
IRJET Journal
 
What is ASP.NET MVC
What is ASP.NET MVCWhat is ASP.NET MVC
What is ASP.NET MVC
Brad Oyler
 
Mcv design patterns
Mcv design patternsMcv design patterns
Mcv design patterns
Rob Paok
 
ASP.Net | Sabin Saleem
ASP.Net | Sabin SaleemASP.Net | Sabin Saleem
ASP.Net | Sabin Saleem
SaBin SaleEm
 
Interaction-Oriented Architecture.pptx
Interaction-Oriented Architecture.pptxInteraction-Oriented Architecture.pptx
Interaction-Oriented Architecture.pptx
Godwin Monserate
 
Architectural Design & Patterns
Architectural Design&PatternsArchitectural Design&Patterns
Architectural Design & Patterns
Inocentshuja Ahmad
 
SaaS transformation with OCE - uEngineCloud
SaaS transformation with OCE - uEngineCloudSaaS transformation with OCE - uEngineCloud
SaaS transformation with OCE - uEngineCloud
uEngine Solutions
 
Ad

More from vamsitricks (20)

Np unit2
Np unit2Np unit2
Np unit2
vamsitricks
 
Np unit1
Np unit1Np unit1
Np unit1
vamsitricks
 
Np unit iv i
Np unit iv iNp unit iv i
Np unit iv i
vamsitricks
 
Np unit iii
Np unit iiiNp unit iii
Np unit iii
vamsitricks
 
Np unit iv ii
Np unit iv iiNp unit iv ii
Np unit iv ii
vamsitricks
 
Unit 7
Unit 7Unit 7
Unit 7
vamsitricks
 
Npc16
Npc16Npc16
Npc16
vamsitricks
 
Npc14
Npc14Npc14
Npc14
vamsitricks
 
Npc13
Npc13Npc13
Npc13
vamsitricks
 
Npc08
Npc08Npc08
Npc08
vamsitricks
 
Unit 3
Unit 3Unit 3
Unit 3
vamsitricks
 
Unit 5
Unit 5Unit 5
Unit 5
vamsitricks
 
Unit 2
Unit 2Unit 2
Unit 2
vamsitricks
 
Unit 7
Unit 7Unit 7
Unit 7
vamsitricks
 
Unit 6
Unit 6Unit 6
Unit 6
vamsitricks
 
Unit 4
Unit 4Unit 4
Unit 4
vamsitricks
 
Unit4wt
Unit4wtUnit4wt
Unit4wt
vamsitricks
 
Unit3wt
Unit3wtUnit3wt
Unit3wt
vamsitricks
 
Unit2wt
Unit2wtUnit2wt
Unit2wt
vamsitricks
 

Jsp with mvc

  • 1. Overview of Design Patterns & The MVC Design Pattern Sapana Mehta
  • 2. Sapana Mehta (CS-6V81) J2EE • Components – Enterprise Java Beans (EJB) – Java Server Pages (JSP) – Servlets • Containers (service providers) – Web container – Bean Container • Connectors (connection service providers)
  • 4. Sapana Mehta (CS-6V81) J2EE and Design Patterns • J2EE: AN OPERATING SYSTEM FOR THE WEB Enterprise web applications, which live on networks and are accessible through browsers, are redefining Enterprise Web Software. This is the next wave of computing. • The J2EE architecture is built to enable component developers to use a Model View Controller (MVC) Design Pattern.
  • 5. Sapana Mehta (CS-6V81) MVC continued • Model encapsulates the core data and functionality • View encapsulates the presentation of the data there can be many views of the common data • Controller accepts input from the user and makes request from the model for the data to produce a new view.
  • 6. Sapana Mehta (CS-6V81) MVC Structure for J2EE
  • 7. Sapana Mehta (CS-6V81) MVC Architecture • The Model represents the structure of the data in the application, as well as application-specific operations on those data. • A View (of which there may be many) presents data in some form to a user, in the context of some application function. • A Controller translates user actions (mouse motions, keystrokes, words spoken, etc.) and user input into application function calls on the model, and selects the appropriate View based on user preferences and Model state.
  • 8. Sapana Mehta (CS-6V81) Advantages of MVC • Separating Model from View (that is, separating data representation from presentation) - easy to add multiple data presentations for the same data, -facilitates adding new types of data presentation as technology develops. -Model and View components can vary independently enhancing maintainability, extensibility, and testability.
  • 9. Sapana Mehta (CS-6V81) Advantages of MVC design Pattern • Separating Controller from View (application behavior from presentation) - permits run-time selection of appropriate Views based on workflow, user preferences, or Model state. • Separating Controller from Model (application behavior from data representation) - allows configurable mapping of user actions on the Controller to application functions on the Model.
  • 10. Sapana Mehta (CS-6V81) Consequences or Benefits • We make changes without bringing down the server. • We leave the core code alone • We can have multiple versions of the same data displayed • We can test our changes in the actual environment. • We have achieved “separation of concerns”