1 / 21

Markus Hjort Reaktor Innovations

Java Web Development. T-111.4360 WWW-palvelun suunnittelu @ HUT 4.3.2008. Markus Hjort Reaktor Innovations. Goals Tonight. I hope you all get Short introduction to Java Web Development Understanding how Java tries to solve real world problems within web development!. The Big Picture.

Download Presentation

Markus Hjort Reaktor Innovations

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Java Web Development T-111.4360 WWW-palvelun suunnittelu @ HUT 4.3.2008 Markus HjortReaktor Innovations

  2. Goals Tonight • I hope you all get • Short introduction to Java Web Development • Understanding how Java tries to solve real world problems within web development!

  3. The Big Picture

  4. Standards • Java Applets • Java Servlets • Java Server Pages (JSP)‏ • Java Server Faces (JSF)‏ • Java Portlets

  5. Open Source Frameworks • Struts • WebWork • GWT (Google Web Toolkit)‏ • Tapestry‏ • Wicket‏ • ...

  6. Servlet Containers (Application Servers)‏ • Tomcat • Jetty • Bea WebLogic • IBM WebSphere • Caucho Resin • ...

  7. Typical applications • Static web sites • Dynamic web sites • Web-based Products

  8. The Challenges of Web Development* • Web interfaces change frequently • Web interfaces involve complex markup • Web interfaces use a very different model compared to traditional Uis in languages such as Java * Rod Johnson: J2EE Design and development

  9. The Challenges of Web Development • HTTP requests can carry only string parameters • Web interfaces make it difficult to validate user input, as we have limited control over over the client browser • HTML offers a limited choice of UI controls

  10. The Challenges of Web Development • Ensuring that a web site looks right and works correctly in all all common browsers can be difficult • There are many efficiency considerations • Web interfaces are relatively hard to test

  11. Lessons Learned In Java Web Development

  12. Epic fails • The shortcomings of Servlet-only solutions • “JSP Model 1” Architecture

  13. OO is important!

  14. Reuse

  15. Testability

  16. Model View Controller(MVC)‏

  17. Front Controller Pattern • Controller uses model for business logic • Controller forwards to view • View shows model values

  18. ComponentFrameworks

  19. Html Components • Links • Labels • Images • ... • You can easily create your own custom components

  20. Thank you!

  21. Links • JSP Tutorial: http://www.jsptut.com/ • Wicket: http://apache.wicket.org/ • MVC: http://en.wikipedia.org/wiki/Model-view-controller • JDBC (for database access): http://java.sun.com/docs/books/tutorial/jdbc/overview/index.html

More Related