ActivePotato Corporation www.activepotato.com Web and e-business Technologies By Rohit Chugh rohit.chugh@activepotato.com For the IEEE Ottawa Chapter June 2, 2003 2003 by Rohit Chugh 1
Agenda Web Technologies (7:10 p.m. 8:00 p.m.) HTTP HTML Web Applications Components of Web Applications Q&A Break (8:00 p.m. 8:15 p.m.) ActivePotato s Applications (8:15 p.m. 9 p.m.) Forms and Payments Q&A 2003 by Rohit Chugh 2
HTTP Internet can be described as the largest clientserver system The clients are Web Browser The servers are Web Server Protocol used is HTTP( Hyper Text Transfer Protocol). HTTP is a request-response protocol client sends request to the server in specific format Server responds to the request by sending a specific file and closes the connection 2003 by Rohit Chugh 3
HTML Stands for Hyper Text Markup Language Interpreted language rather than a compiled language Platform independent Follows certain standards imposed by W3C Consists of tags also referred as markups to describe a logical structure of the document 2003 by Rohit Chugh 4
HTML (contd.) <HTML> <HEAD><TITLE> Demo HTML </TITLE> </HEAD> <BODY> <P> PERSONAL DETAILS</P> </BODY> </HTML> 2003 by Rohit Chugh 5
Web Applications Collection of web pages is called a web site Websites display static content and allows user to navigate and view information Web applications provide a more interactive experience to the user by generating dynamic content Web apps are created to solve specific problems for the user. Examples: Applications like My Yahoo or a Web store front software Types of Web Applications Business to Consumer Business to Business 2003 by Rohit Chugh 6
Web Applications (contd.) Web applications are the integration of different components: Web Servers Application Servers Server Side Scripts( either Java, Microsoft or others) Client side scripts (Java scripts, VB scripts) Databases( Oracle, Mysql, DB2) Data Interchange XML Text Security components like SSL, S-HTTP, Certificates Payment Infrastructure Software 2003 by Rohit Chugh 7
Quiz Is Hotmail a web application? Is the IEEE website a web application? Is Yahoo s website a B2C or B2B application? 2003 by Rohit Chugh 8
Java and the Web Java Servlets 2003 by Rohit Chugh 9
Java Servlets Java Servlets are the java class files which execute within the process space of the application server Needs servlet engines to execute them They are portable across multiple platforms They have access to the entire Java API 2003 by Rohit Chugh 10
Java Servlets (contd.) Servlets are dynamically loaded modules that service request from the web server servlet Client web server Application server 2003 by Rohit Chugh 11
Java Server Pages - JSP They are simple way of generating the dynamic HTML on the server side They are extension of the Java Servlets and provide a way to separate content generation from content presentation Looks like any HTML code with java code embedded in it between <% %> Needs a JSP processor to interpret the JSP 2003 by Rohit Chugh 12
Java Server Pages (contd.) JSP Directives Page Directive: Can be used to control the following Sessions Library usage Scripting language Mime types Error Page Usage: <%@ page import="java.util.*,java.text.*" %> Include Directive: Allows to include the contents of another file. Usage:<% @ include file= /Header.jsp %> 2003 by Rohit Chugh 13
Group Question What is the difference between JSP and Servlet? To the end user? To the developer? 2003 by Rohit Chugh 14
JSPs vs. Servlets They are the same to the end user JSPs are always converted to servlets JSPs allow for the content presentation to be separated from business logic. Servlets don t 2003 by Rohit Chugh 15
Microsoft Technologies and Web Active Server Pages - ASP 2003 by Rohit Chugh 16
Active Server Pages - ASP Very similar to JSP - another way to generate dynamic HTML. Open, compile-free application environment ASP can be combined with reusable components like ActiveX to create dynamic and Web-based business solutions. Active Server Pages enable server-side scripting with native support for both VBScript and Jscript 2003 by Rohit Chugh 17
Active Server Pages (contd.) Looks like any HTML code with VB script embedded in it between <% %> ASPs were initially designed to work with I.I.S. With Sun ONE Active Server Pages it can be made to run on the Apache Web Server and SUN ONE WEB server. More information can be found on Chilisoft site ASPs are now platform independent 2003 by Rohit Chugh 18
ASP (contd.) Sample Code <html> <head> <Title>Hi there!</title> </head> <body background="" bgcolor=#ffffff> <h2> <% Response.Write "Welcome to Web and etechnologies Seminar" %> </h2> 2003 by Rohit Chugh 19
.NET Set of software technologies Removes different barriers between the systems, user through web services Uses the.net Application Framework.NET Application Framework has 2 components Common Language Runtime.NET Framework Class Library 2003 by Rohit Chugh 20
Data Interchange Technologies XML 2003 by Rohit Chugh 21
X.M.L. Stands for Extensible Markup Language. Designed to be universal format for data on the web XML allows developers to easily describe structured data from any application in a standard way XML doesn t replace HTML. Is is rather complementary to it Its platform independent 2003 by Rohit Chugh 22
X.M.L. (contd.) Is self describing and doesn t have any predefined tags. This makes it easy for applications to exchange data following the same protocol XML can be used to define other languages like WML (wireless markup language) 2003 by Rohit Chugh 23
XML (contd.) Sample XML file. <Student> <StudentId>S001</StudentId> <FirstName>Marwan</FirstName> <LastName>Forzley</LastName> <Age>10</Age> </Student> 2003 by Rohit Chugh 24
Security SSL & Certificates 2003 by Rohit Chugh 25
Security (S.S.L.) Used by all application that require secure data transfer. Lock shows on web page Secures information using symmetric and asymmetric encryption SSL can be used with 2 strengths: 40 bit 128 bit Authenticates server using RSA Public Key server certificates 2003 by Rohit Chugh 26
Group Exercise Shoes.com sells shoes online. User selects their favorite shoe from a catalogue, and then proceeds to pay on the internet Where would you use the following technologies: Html Java Servlets / JSPs/ASPs SSL Certificates 2003 by Rohit Chugh 27
List of Resources Java Server Pages http://java.sun.com/products/jsp/ Java Servlets http://java.sun.com/products/servlet/ Tutorial: http://java.sun.com/j2ee/tutorial/1_3- fcs/doc/servlets.html http://www.coreservlets.com XML http://www.microsoft.com/xml SSL http://developer.netscape.com/docs/manuals/security/ss lin/contents.htm 2003 by Rohit Chugh 28
Web Design at ActivePotato Ottawa based company is offering the following services: Hosted online forms Online forms for registration, ticketing and memberships Administration views for real-time tracking of sales Administration views for directory and member management Multi-layered admin views Online payments Credit card processing Payment from Bank account (ebill) Group email and SMS Bulk email and SMS distribution List management Professional Services Custom development for high end ticketing and registration solutions 2003 by Rohit Chugh 29
Delivery Process 2003 by Rohit Chugh 30
Sample Form Customer Logo & Branding Sponsors Information Block Payment Section Personal Details Section Pulldown Boxes Communication Section Additional Details Disclaimer Section
Payments Multiple payment options supported Credit cards ebill No Credit card required Credit Cards All major cards are supported (VISA, MasterCard, Amex) Data is secured through SSL Credit card information is encrypted and is not seen by ActivePotato ebill Payment option Simple just like paying any bill Secure Payment is at the bank All Major banks in Canada are supported 2003 by Rohit Chugh 32
Credit card payments Buyers Bank 4- confirmation email 1- Buy Item 3- transaction details 2- transaction details 2- transaction details customer 4- confirmation email 3- Transaction results ActivePotato server Payment Gateway 2003 by Rohit Chugh 33
ActivePotato Corporation Thank You Contact Info: Rohit Chugh, System Analyst Rohit.Chugh@activepotato.com ActivePotato Corp www.activepotato.com June 2, 2003 2003 by Rohit Chugh 34