Web and e-Business Technologies

drivercutInternet et le développement Web

13 nov. 2013 (il y a 7 années et 10 mois)

250 vue(s)

© 2003 by Rohit Chugh1
Active
Active
Potato Corporation
Potato Corporation
www.active
www.active
potato.com
potato.com
Web and e-Business Technologies
By
Rohit
Chugh
rohit.chugh@active
potato.com
For the IEEE Ottawa Chapter
June 2, 2003
© 2003 by Rohit Chugh2
Agenda
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.)

Active
Potato’s Applications (8:15 p.m. –
9 p.m.)

Forms and Payments

Q&A
© 2003 by Rohit Chugh3
HTTP
HTTP

Internet can be described as the largest client-
server 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 Chugh4
HTML
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 Chugh5
HTML (contd.)
HTML (contd.)
<HTML>
<HEAD><TITLE> Demo HTML </TITLE>
</HEAD>
<BODY>
<P> PERSONAL DETAILS</P>
</BODY>
</HTML>
© 2003 by Rohit Chugh6
Web Applications
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 Chugh7
Web Applications (contd.)
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 Chugh8
Quiz
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 Chugh9
Java and the Web
Java and the Web
Java Servlets
© 2003 by Rohit Chugh10
Java Servlets
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 Chugh11
Java Servlets (contd.)
Java Servlets (contd.)

Servlets are dynamically loaded modules
that service request from the web server
servlet
Client
web server
Application
server
© 2003 by Rohit Chugh12
Java Server Pages
Java Server Pages
-
-
JSP
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 Chugh13
Java Server Pages (contd.)
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 Chugh14
Group Question
Group Question

What is the difference between JSP and
Servlet?

To the end user?

To the developer?
© 2003 by Rohit Chugh15
JSPs vs. Servlets
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 Chugh16
Microsoft Technologies and Web
Microsoft Technologies and Web
Active Server Pages -
ASP
© 2003 by Rohit Chugh17
Active Server Pages
Active Server Pages
-
-
ASP
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 Chugh18
Active Server Pages (contd.)
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 Chugh19
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"
%>
</h2>
© 2003 by Rohit Chugh20
.NET
.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 Chugh21
Data Interchange Technologies
Data Interchange Technologies
XML
© 2003 by Rohit Chugh22
X.M.L.
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 Chugh23
X.M.L. (contd.)
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 Chugh24
XML (contd.)
XML (contd.)

Sample XML file.
<Student>
<StudentId>S001</StudentId>
<FirstName>Marwan</FirstName>
<LastName>Forzley</LastName>
<Age>10</Age>
</Student>
© 2003 by Rohit Chugh25
Security
Security
SSL & Certificates
© 2003 by Rohit Chugh26
Security (S.S.L.)
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 Chugh27
Group Exercise
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 Chugh28
List of Resources
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 Chugh29
Web Design at Active
Web Design at Active
Potato
Potato
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 Chugh30
Delivery Process
Delivery Process
Customer
Logo
& Branding
Sponsors
Pulldown
Boxes
Sample Form
Information
Block
Payment Section
Personal Details
Section
Communication
Section
Additional
Details
Disclaimer
Section
© 2003 by Rohit Chugh32
Payments
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 Chugh33
Credit card payments
Credit card payments
Buyers
1-
Buy Item
4
-
confirmation email
4-
confirmation email
2-
transaction details
3-
Transaction results
2- transaction details
3- transaction details
Bank
Payment Gateway
ActivePotato server
customer
© 2003 by Rohit Chugh34
Active
Active
Potato Corporation
Potato Corporation
Thank You
Thank You
Contact Info:
Rohit Chugh, System Analyst
Rohit.Chugh@
active
potato.com
Active
Potato Corp
www.active
potato.com
June 2, 2003