java oss web technologies by dave ford introduction purpose describe javas relationship to the oss...

12
Java OSS Web Technologies By Dave Ford

Upload: angel-lancaster

Post on 27-Mar-2015

216 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Java OSS Web Technologies By Dave Ford Introduction Purpose Describe Javas relationship to the OSS community Describe OSS tools used on recent project

Java OSS Web Technologies

By Dave Ford

Page 2: Java OSS Web Technologies By Dave Ford Introduction Purpose Describe Javas relationship to the OSS community Describe OSS tools used on recent project

IntroductionPurposeDescribe Java’s relationship to the OSS

communityDescribe OSS tools used on recent projectHighlight a few of those tools

Page 3: Java OSS Web Technologies By Dave Ford Introduction Purpose Describe Javas relationship to the OSS community Describe OSS tools used on recent project

Tools I used for a recent project

Apache Jakarta TomcatJakarta Taglibs (JSTL)StrutsHibernateApache Maven IntelliJ (not OSS)JUnitmySql (not Java)

Page 4: Java OSS Web Technologies By Dave Ford Introduction Purpose Describe Javas relationship to the OSS community Describe OSS tools used on recent project

What Exactly is Java?

Java is 3 sets of specificationsLanguage Spec

Binary Format (VM Spec)

Platform/API SpecsJ2SE

J2EE

Other Sun APIs

Page 5: Java OSS Web Technologies By Dave Ford Introduction Purpose Describe Javas relationship to the OSS community Describe OSS tools used on recent project

The Language

Statically Typed and Dynamic

Object-Oriented from the Start

General PurposeYou can write servlets with JavaYou can write a word processor with Java

Multi-Threaded

Page 6: Java OSS Web Technologies By Dave Ford Introduction Purpose Describe Javas relationship to the OSS community Describe OSS tools used on recent project

Implementation Versus Specification

Java’s Web StackServlet

JSP (Java Server Pages)

JSTL (JSP Standard Tag Lib)

JSF (Java Server Pages)

Code and Knowledge are Portable

Page 7: Java OSS Web Technologies By Dave Ford Introduction Purpose Describe Javas relationship to the OSS community Describe OSS tools used on recent project

Implementations

Open SourceApache Jakarta Tomcat (Servlet/JSP)JettyEnhydra

CommercialIBM Web SphereBEA Web LogicOracle 9iASCaucho ResinOrion

Page 8: Java OSS Web Technologies By Dave Ford Introduction Purpose Describe Javas relationship to the OSS community Describe OSS tools used on recent project

J2EE Stack

Java/J2SE

J2EE

Other Sun API’s

3rd Party and OSS

Page 9: Java OSS Web Technologies By Dave Ford Introduction Purpose Describe Javas relationship to the OSS community Describe OSS tools used on recent project

Tomcat

Implements Servlet Spec/JSP Spec

Stable and Fast Enough

Great Support

HTTP Server

Relationship to Apache “Classic”

Page 10: Java OSS Web Technologies By Dave Ford Introduction Purpose Describe Javas relationship to the OSS community Describe OSS tools used on recent project

Beyond Java’s Web Stack

From Servlet Only

To JSP Only

To Servlet -> JSP

To Servlet -> Action -> JSP (MVC)

Web Frameworks and Struts

Page 11: Java OSS Web Technologies By Dave Ford Introduction Purpose Describe Javas relationship to the OSS community Describe OSS tools used on recent project

Struts

Front Controller (Master Servlet)Action (handles request)Form Bean (screen buffer)Mapping (request uri ->action class)JSP Tag Lib (renders the Form Bean) Validation and ConvertersScreen Re-PopulationsPros and Conshttp://jakarta.apache.org/struts/

Page 12: Java OSS Web Technologies By Dave Ford Introduction Purpose Describe Javas relationship to the OSS community Describe OSS tools used on recent project

Hibernate

OOP and Database ProgrammingClasses: Data + ResponsibilitiesStructs (Transfer Objects)

JDBC in 2003For most projects use Object Persistence layer – not JDBC direct.

Hibernate is an O/R MappingTransparent PersistenceBest online support I’ve ever seenwww.hibernate.org