+ All Categories
Home > Documents > Introduction to Web

Introduction to Web

Date post: 25-Feb-2016
Category:
Upload: harken
View: 24 times
Download: 0 times
Share this document with a friend
Description:
Introduction to Web. Dimitar Nenchev [email protected] Ivan Nakov [email protected]. Agenda. Web application architecture Popular frameworks Creating maven project Hibernate Spring JSF. What is Web Application?. HTML and dynamic pages – JSP, XHTML - PowerPoint PPT Presentation
21
Introduction to Web Dimitar Nenchev [email protected] Ivan Nakov [email protected]
Transcript
Page 1: Introduction to Web

Introduction to Web

Dimitar [email protected]

Ivan [email protected]

Page 2: Introduction to Web

2

Agenda

• Web application architecture• Popular frameworks• Creating maven project• Hibernate• Spring• JSF

Page 3: Introduction to Web

3

What is Web Application?

• HTML and dynamic pages – JSP, XHTML• Servlets • Resources – images, css, javascript etc• Business and Database logic• WAR file

Page 4: Introduction to Web

4

Application Layers

Page 5: Introduction to Web

5

Popular Frameworks

• Database: MySql, Postgresql• ORM: Hibernate, Ibatis, JPA• Services: EJB, Spring• Web: JSP, XHTML– Struts, GWT, JSF Primefaces

Page 6: Introduction to Web

6

Popular Frameworks

Page 7: Introduction to Web

7

How to start?

Technologies:• JDK 7• Postgres 9.x / MySql 5.5.x• Maven 3.0.x• Hibernate 4.1.x• Spring 3.2• Primefaces 3.1.x• Tomcat 7

Page 8: Introduction to Web

8

What is Maven?

• Modern build/project management tool• pom.xml• .m2 repo• Maven eclipse plugin• Maven war plugin

Page 9: Introduction to Web

9

What is ORM?• In relational databases, business entities are represented as

tables• In object-oriented languages, business entities are

represented as classes

OOProgrammingLanguage(classes)

ORMFramework

RelationalDatabase(tables)

Page 10: Introduction to Web

10

Example

Page 11: Introduction to Web

11

Hibernate Advantages

• Mature Open Source framework• Portability• Optimized Performance• Reduces Development time • Reduce complexity• Support Query Language• Integration with many popular frameworks

Page 12: Introduction to Web

12

What is Spring

• Mature Open Source framework• Lightweight solution for enterprise apps• Non-invasive (POJO based)• Modular• Integration with many popular frameworks

Page 13: Introduction to Web

13

Spring Modules

Page 14: Introduction to Web

14

IoC and DI

• “Don’t call me, I’ll call you”• DI is form of IoC• DI variants– Constructor injection– Setter injection

Page 15: Introduction to Web

15

Terms

• Application Context– Represents the Spring IoC container

• Bean– Object managed by Spring IoC Container

• Bean Definition– Describe a bean instance

Page 16: Introduction to Web

16

Bean Scopes

• Simple– Singleton– Prototype

• Runtime– Thread– Custom implementation

• Web-aware scopes– Request– Session– Global Session

Page 17: Introduction to Web

17

Transactions• What is Transaction?• Spring Declarative transaction management• Transaction Propagation

– Required– RequeresNew– Supports– NotSupported– Nested– Mandatory– Never

• ReadOnly

Page 18: Introduction to Web

18

What is JSF?

• Request driven MVC web framework• Component oriented UI design model• Event driven • Easy to use ajax support• Templating support• Zero Config• Component libraries

Page 19: Introduction to Web

19

Primefaces

• Open source• Lightweight• Easy to use• Rich Components

Page 20: Introduction to Web

20

Contest

Page 21: Introduction to Web

21

Questions?


Recommended