Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Web Programming Muhammad Arief D2856

Similar presentations


Presentation on theme: "Introduction to Web Programming Muhammad Arief D2856"— Presentation transcript:

1 Introduction to Web Programming Muhammad Arief D2856 http://arief.ismy.web.id

2 Tata Tertib Absen dan Kehadiran wajib. Tugas/Projek harus dilakukan. Tidak menggunakan laptop dikelas tanpa seijin dosen. Setiap pertemuan akan ada kuis (10 - 15 menit) http://arief.ismy.web.id

3 Focus HTML, CSS, XML JavaScript Internet, WWW Protocol JDBC Session tracking, cookies Design Pattern, Struts Framework Servlet / JSP  J2EE, J2SE  HADIR KULIAH !!!! http://arief.ismy.web.id

4 Bahan Tambahan http://arief.ismy.web.id

5 TIOBE Programming Community Index for August 2007 indication of the popularity of programming languages. http://arief.ismy.web.id

6 Java World http://arief.ismy.web.id

7 TOC Web Evolution Web Architecture Web Application Programming Language and Development Tools Design Pattern and Framework Summary http://arief.ismy.web.id

8 Internet History PastPresent Future http://arief.ismy.web.id

9 Internet History 1957 : Advanced Research Projects Agency (ARPA). 1962 : Dr. J.C.R. Licklider was chosen to head ARPA’s research in improving the military’s use of computer technology. 1969 : ARPANET. 1970 : Multiple network packet-switching technology experiment. http://arief.ismy.web.id

10 Internet History 1983 : TCP/IP had become the standard communication protocol. 1985 : NSFNET from National Science Foundation. 1990 : WWW introduced by Tim Berners- Lee 1991 : Commercial Internet Exchange / CIX, the first commercial Internet Providers. 1993 : Mosaic, University of Illinois at Champaign-Urbana. http://arief.ismy.web.id

11 Who Uses The Internet ?  Institutions of all kinds - commercial, academic, and government  Professional communities of all kinds - especially research and development organizations  Business enterprises which specialize in providing or collecting information and marketing  General public via local access providers and gateways to commercial public e-mail carriers and other kinds of networks http://arief.ismy.web.id

12 Business and Internet Information distribution tools Advertising tools Marketing tools To offer Information To access Information To transfer Information http://arief.ismy.web.id

13 Internet as Advertisement and Marketing tools World Wide Web as interactive billboard to the world. as tool for finding businesses on the Internet. As a media to market their product File Transfer Protocol as an inexpensive method to get information to customer. E-mail as an effective customer support tool. http://arief.ismy.web.id

14 its ability to facilitate global sharing of information and resources. its potential to provide an efficient channel for advertising, marketing and even direct distribution of certain goods and information services. Popularity of WWW as a commercial medium http://arief.ismy.web.id

15 Web Based Application Evolution Static Web site: company profile, product, contact number etc. Dynamic Web site: supporting products query, personalization Web Services: new paradigm to web programming http://arief.ismy.web.id

16 Dynamic Web site Web pages that are based on data sent by the user –e.g. search robot results, confirmation of product purchase Web pages derived from frequently-changing data –e.g. weather forecast, news bulletin Web pages presenting database information or information from other server resources –e.g. current price and availability of items in a catalogue http://arief.ismy.web.id

17 Web Architecture: Two Tiers basic web architecture –A web client: display information content –web server: transfer information to the client. static web pages (documents) are transferred from information servers to browser clients world-wide depend on three key standards: HTML for encoding document content, URLs for naming remote information objects in a global namespace, and HTTP for staging the transfer. extensions that permit three-tiered architectures where content pages can be constructed dynamically and where programs as well as data can be transferred. http://arief.ismy.web.id

18 Web Architecture: Three Tiers Three Tiers http://arief.ismy.web.id

19 Web Architecture: Three Tiers Three Tiers http://arief.ismy.web.id

20 J2EE Technology Servlet: A Servlet is a program that runs on a web server. It acts as a middle layer between: –a request coming from a web browser or other HTTP client and – databases or applications on the HTTP server. JSP / Java Server Pages: It is a technology that allows mixing static HTML with dynamic content generated by servlets. EJB / Enterprise Java Bean: it is a component the provides reusable business logic functionality and/or a representation of a persistent business entity. http://arief.ismy.web.id

21 Servlets and JSP http://arief.ismy.web.id

22 Web Technology Database Server Application Server Web Server Firewall SSL HTTPS FTP Domain etc http://arief.ismy.web.id

23 Firewall A computer or computer software that prevents unauthorized access to private data (as on company LAN or intranet) by outside computer user (as of internet) Reduce possible accesses Examine all the traffics Discard/allow traffic based on certain rules http://arief.ismy.web.id

24 Firewall http://arief.ismy.web.id

25 What can a firewall protect against? Unauthenticated interactive logins from the “outside” world Block traffic from the outside to the inside and permit users on the inside to communicate freely with outside  Logging and auditing function http://arief.ismy.web.id

26 What can’t a firewall protect against? Attacks that don’t go through the firewall Traitors or idiots inside your network Stupidity Windows XP: Start  Control Panel  Network Connections  Right click the connection  Properties  Advance  Firewall http://arief.ismy.web.id

27 Secure Socket Layer cryptographic protocols that provide secure communications on the Internet for such things as web browsing, e-mail, Internet faxing, instant messaging and other data transfers. a low level encryption scheme used to encrypt transactions in higher-level protocols such as HTTP, FTP, Encryption of data in transit, Message integrity, Optional client authentication Proposed by Netscape Communication Corporation  TLS: Transaction Layer Security http://arief.ismy.web.id

28 Secure Hyper Text Transfer Protocol Web browsers typically use HTTP to communicate with web servers. is not a separate protocol, but refers to the combination of a normal HTTP interaction over an encrypted Secure Sockets Layer (SSL) https:// URL  secure HTTP is to be used Transaction confidentiality, Authentication, Message integrity, non-repudiability of origin Proposed by CommerceNet http://arief.ismy.web.id

29

30 Secure System ? http://arief.ismy.web.id

31 File Transfer Protocol FTP : the tool for transferring files between computers on the Internet. http://arief.ismy.web.id

32 File Transfer Protocol http://arief.ismy.web.id

33 Domain Name URL : Uniform Resource Locator, the standard way to give the address of any resource on the Internet. http://www.ismy.web.id/index.html World Wide WebDocument namego: government edu: education id: Indonesia nl: Netherland Company name http: Hypertext Transfer Protocol html: Hyper Text Markup Language Subdomain: http://arief.ismy.web.id http://arief.ismy.web.id

34 Web Application One stop shopping: Amazon.com Web portal: yahoo.com (entertaiments, finance, email, collaborations, searching) B2B portal Banking: online Banking, online payment e-Commerce e-Education http://arief.ismy.web.id

35 How online Business Transaction works Group Discussion http://arief.ismy.web.id

36 Programming Language Web Design: HTML Style Sheet (css) XML, XSL, XSLT Language: Client side scripting: VBScript, Java Script Server side scripting: PHP, ASP, JSP Java (J2EE, J2SE): Servlets, JSP, EJB Visual Studio.NET http://arief.ismy.web.id

37 XML EXtensible Markup Language HTML menentukan tampilan data pada layar tags atau label yang dapat digunakan sudah pasti dan tidak dapat dirubah XML menggambarkan atau mendefinisikan data itu sendiri dapat membuat sendiri tags-nya sehingga dapat semakin meningkatkan fleksibilitas dan memperjelas maksud dari tags tersebut disimpan dalam bentuk text, menjadikan dokumen XML sebagai format yang sangat fleksibel untuk pertukaran informasi antar sistem http://arief.ismy.web.id

38 Example: XML File Jim John Reminder Send the letter to Jeff! http://arief.ismy.web.id

39 Persyaratan dokumen XML Dokumen harus well-formed: sesuai dengan sintaks tertentu Dokumen harus valid: well-formed dan sesuai dengan sebuah skema XML tertentu. http://arief.ismy.web.id

40 Example: XML Schema http://arief.ismy.web.id

41 Development Tools Content Authoring: Notepad MS Frontpage Macromedia Dreamweaver Programming (IDE): Java: eclipse, netbeans, JDeveloper.NET: Visual Studio.NET http://arief.ismy.web.id

42 Design Pattern Elements of Reusable Object-Oriented Software is a general repeatable solution to a commonly occurring problem in software design. is not a finished design that can be transformed directly into code. is a description or template for how to solve a problem that can be used in many different situations. can give us practically way to build good application as a “proven recipe” for how to designing program http://arief.ismy.web.id

43 Framework reusable design for a software system (or subsystem). expressed as a set of abstract classes and the way their instances collaborate for a specific type of software. object-oriented designs. include support programs, code libraries, a scripting language, or other software to help develop and glue together the different components of a software project. Framework simply accelerate web development by providing skeleton, unfortunately framework is not easy to learn for a new beginner  learning curve Framework = software components + design patterns http://arief.ismy.web.id

44 Examples Java Framework: Struts Hibernate Spring PHP Framework: Symfony Framework Zoop framework Zend Framework http://arief.ismy.web.id

45 Advantages Membantu mengembangkan aplikasi dengan konsep MVC (Model-View-Controller), karena memisahkan aplikasi web menjadi model bisnis, aplikasi server dan antarmuka. Memiliki banyak tools dan classes dengan tujuan untuk mempersingkat waktu pengembangan dari aplikasi web yang kompleks. Meng-otomatisasi fungsi-fungsi yang berlaku umum, sehingga pengembang dapat memfokuskan diri pada hal- hal yang spesifik dari aplikasi yang sedang dikembangkan. Tidak perlu melakukan ”reinvent the wheel”, setiap mengembangkan aplikasi web baru. Aplikasi yang dikembangkan akan memiliki coding yang konsisten, bugs lebih sedikit dan implementasi yang lebih felksibel. Setiap programmer dapat men-test dan men-debug kode program dengan mudah, meskipun program tersebut dikembangkan oleh orang lain. Meningkatkan integritas dari sistem tersebut. http://arief.ismy.web.id

46 Client-side Scripting Client-side scripting –Used for: Validation Interactivity Dynamic HTML Java applets Accessing browser –Browser-dependent Scripting language must be supported by browser or scripting host –Viewable on client Protecting source code difficult http://arief.ismy.web.id

47 Server-side Scripting Server-side scripting –Reside on server  more flexibility Database access –Usually generate custom response for client –Run exclusively on server  cross-platform issues not a concern –Not visible to client Only HTML + client-side scripts sent to client http://arief.ismy.web.id

48 Advantage Framework simply accelerate web development by providing skeleton, unfortunately framework is not easy to learn for a new beginner  learning curve facilitating software development, by allowing designers and programmers to spend more time on meeting software requirements rather than dealing with the more tedious low level details of providing a working system. allows the developers to spend more time concentrating on the business-specific problem at hand rather than on the plumbing code behind it. limit the choices during development, so it increases productivity, specifically in big and complex systems. http://arief.ismy.web.id


Download ppt "Introduction to Web Programming Muhammad Arief D2856"

Similar presentations


Ads by Google