Active
ActivePotato CorporationPotato Corporation
www.active
www.activepotato.compotato.com
Web and e-Business Technologies
ByRohit Chugh
[email protected] For the IEEE Ottawa Chapter June 2, 2003
Agenda
Agenda
z Web Technologies (7:10 p.m. – 8:00 p.m.) – HTTP – HTML – Web Applications– Components of Web Applications – Q&A
z Break (8:00 p.m. – 8:15 p.m.)
HTTP
HTTP
z Internet can be described as the largest
client-server system
z The clients are “Web Browser” z The servers are “Web Server”
z Protocol used is HTTP( Hyper Text Transfer
Protocol).
z 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
HTML
HTML
z Stands for Hyper Text Markup Language
z Interpreted language rather than a compiled
language
z Platform independent
z Follows certain standards imposed by W3C z Consists of tags also referred as markups to
HTML (contd.)
HTML (contd.)
<HTML>
<HEAD><TITLE> Demo HTML </TITLE> </HEAD>
<BODY>
<P> PERSONAL DETAILS</P> </BODY>
Web Applications
Web Applications
z Collection of web pages is called a web site
z Websites display static content and allows user
to navigate and view information
z Web applications provide a more interactive
experience to the user by generating dynamic content
z Web apps are created to solve specific problems
for the user. Examples: Applications like My Yahoo or a Web store front software
Web Applications (contd.)
Web Applications (contd.)
z 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
Quiz
Quiz
z Is Hotmail a web application?
z Is the IEEE website a web application? z Is Yahoo’s website a B2C or B2B
Java and the Web
Java and the Web
Java Servlets
Java Servlets
z Java Servlets are the java class files which
execute within the process space of the application server
z Needs servlet engines to execute them z They are portable across multiple
platforms
Java Servlets (contd.)
Java Servlets (contd.)
z Servlets are dynamically loaded modules
that service request from the web server
servlet
Client
web server Application server
Java Server Pages
Java Server Pages
-
-
JSP
JSP
z They are simple way of generating the
dynamic HTML on the server side
z They are extension of the Java Servlets
and provide a way to separate content generation from content presentation
z Looks like any HTML code with java code
embedded in it between <% %>
Java Server Pages (contd.)
Java Server Pages (contd.)
z 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
Group Question
Group Question
z What is the difference between JSP and
Servlet?
– To the end user? – To the developer?
JSPs vs. Servlets
JSPs vs. Servlets
z They are the same to the end user
z JSPs are always converted to servlets
z JSPs allow for the content presentation to
be separated from business logic. Servlets don’t
Microsoft Technologies and Web
Microsoft Technologies and Web
Active Server Pages
Active Server Pages
-
-
ASP
ASP
z Very similar to JSP - another way to generate
dynamic HTML.
z Open, compile-free application environment
z ASP can be combined with reusable components
like ActiveX to create dynamic and Web-based business solutions.
z Active Server Pages enable server-side scripting
Active Server Pages (contd.)
Active Server Pages (contd.)
z Looks like any HTML code with VB script
embedded in it between <% %>
z ASPs were initially designed to work with
I.I.S.
z With Sun ONE Active Server Pages it can
be made to run on the Apache Web Server and SUN ONE WEB server. More
ASP (contd.)
ASP (contd.)
Sample Code <html> <head> <Title>Hi there!</title> </head><body background="" bgColor=#ffffff> <h2>
<%
Response.Write "Welcome to Web and eTechnologies Seminar"
.NET
.NET
z Set of software technologies
z Removes different barriers between the
systems, user through web services
z Uses the .NET Application Framework z .NET Application Framework has 2
components
Data Interchange Technologies
Data Interchange Technologies
X.M.L.
X.M.L.
z Stands for Extensible Markup Language. z Designed to be universal format for data
on the web
z XML allows developers to easily describe
structured data from any application in a standard way
z XML doesn’t replace HTML. Is is rather
X.M.L. (contd.)
X.M.L. (contd.)
z Is self describing and doesn’t have any
predefined tags. This makes it easy for applications to exchange data following the same protocol
z XML can be used to define other
languages like WML (wireless markup language)
XML (contd.)
XML (contd.)
z Sample XML file. <Student> <StudentId>S001</StudentId> <FirstName>Marwan</FirstName> <LastName>Forzley</LastName> <Age>10</Age> </Student>Security
Security
Security (S.S.L.)
Security (S.S.L.)
z Used by all application that require secure
data transfer. Lock shows on web page
z Secures information using symmetric and
asymmetric encryption
z SSL can be used with 2 strengths:
– 40 bit – 128 bit
Group Exercise
Group Exercise
z Shoes.com sells shoes online. User
selects their favorite shoe from a
catalogue, and then proceeds to pay on the internet
z Where would you use the following
technologies: – Html
– Java Servlets / JSPs/ASPs – SSL
List of Resources
List of Resources
z Java Server Pages
– http://java.sun.com/products/jsp/ z 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 z XML – http://www.microsoft.com/XML
Web Design at Active
Web Design at Active
Potato
Potato
Ottawa based company is offering the following services:z 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
z Online payments
– Credit card processing
– Payment from Bank account (eBill)
z Group email and SMS
– Bulk email and SMS distribution – List management
Delivery Process
Customer Logo & Branding Sponsors Pulldown Boxes Sample Form Information Block Payment Section Personal Details Section Communication Section Additional
Payments
Payments
z Multiple payment options supported
– Credit cards
– eBill – No Credit card required
z 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
z eBill Payment option
– Simple – just like paying any bill – Secure – Payment is at the bank
Credit card payments
Credit card payments
Buyers 1-Bu y Item 4-co nfirm atio n em ail 4- confirmation email 2- transaction details 3- Transaction results
2-transaction details 3-transaction details
Bank
Active
ActivePotato CorporationPotato Corporation
Thank You
Thank You
Contact Info:
Rohit Chugh, System Analyst [email protected]