The need for server pages

Post on 01-Jan-2016

19 views 0 download

description

The need for server pages. HTML Need for Dynamic Content Server pages. Hyper-text Markup Language. Designed to implement the layout of a webpage. Stateless nature of pure HTML pages. Example Led to development of scripting languages Client-side scripting vs. Server-side scripting - PowerPoint PPT Presentation

Transcript of The need for server pages

ASP vs. JSP

Presentation by: Mohammad Reza

Differences

Future

Similarities

Introduction

Differences

A word of caution

Some interesting links

Similarities

Introduction

HTML

Need for Dynamic Content

Server pages

•Hyper-text Markup Language.

•Designed to implement the layout of a webpage.

• Stateless nature of pure HTML pages.

•Example

•Led to development of scripting languages

•Client-side scripting vs. Server-side scripting

•Non-static

•Complement HTML to present dynamic data.

•Example languages: ASP, JSP

The need for server pages

Last Updated: April 20, 2023

ASP vs. JSP

Presentation by: Mohammad Reza

Differences

Future

Similarities

Introduction

Differences

A word of caution

Some interesting links

Similarities

Introduction•Run on a server as opposed to running on a client

•Require good programming skills and logical thought

•Provide full SQL database functionality

•No difference in the output

•Examples: A page in ASP………A page in JSP

Similarities Between ASP and JSP

ASP vs. JSP

Presentation by: Mohammad Reza

Differences

Future

Similarities

Introduction

Differences

A word of caution

Some interesting links

Similarities

Introduction

Output of an ASP page

code

ASP vs. JSP

Presentation by: Mohammad Reza

Differences

Future

Similarities

Introduction

Differences

A word of caution

Some interesting links

Similarities

Introduction

Code for the ASP example

<html>

<head><title>Hello World</title></head>

<body><%response.write "<h1>Hello World</h1>"%></body>

</html>

ASP vs. JSP

Presentation by: Mohammad Reza

Differences

Future

Similarities

Introduction

Differences

A word of caution

Some interesting links

Similarities

Introduction

Output of a JSP page

code

ASP vs. JSP

Presentation by: Mohammad Reza

Differences

Future

Similarities

Introduction

Differences

A word of caution

Some interesting links

Similarities

Introduction

Code for the JSP example

<html>

<head><title>Hello World</title></head>

<body><h1><% out.println("Hello World"); %></h1></body>

</html>

ASP vs. JSP

Presentation by: Mohammad Reza

Differences

Future

Similarities

Introduction

Differences

A word of caution

Some interesting links

Similarities

Introduction

Differences

•Functionality of languages:

•JScript, VBScript for ASP vs. Java for JSP

•JSP-robust exception handling

•Interpreted vs. translated

•Programming logic vs. page design in JSP

•Greater learning curve for JSP vs. ASP

•JSP- Open standard vs. ASP- Microsoft tied

•Cross-platform reusability

•Tag customization

ASP vs. JSP

Presentation by: Mohammad Reza

Differences

Future

Similarities

Introduction

Differences

A word of caution

Some interesting links

Similarities

Introduction

A word of caution

• Objectivity is lost on diehard fans of either languages

• With advances in both languages it’s a constant struggle to determine which has a upper hand

• ASP .NET is the new variation of ASP in direct competition with JSP

• Difficult to determine which would be ideal for a given project

ASP vs. JSP

Presentation by: Mohammad Reza

Differences

Future

Similarities

Introduction

Differences

A word of caution

Some interesting links

Similarities

Introduction• http://www.w3schools.com

• http://www.jsptut.com

Resource Links on the Web

ASP vs. JSP

Presentation by: Mohammad Reza

Differences

Future

Similarities

Introduction

Differences

A word of caution

Some interesting links

Similarities

Introduction

An Example HTML Page

code

ASP vs. JSP

Presentation by: Mohammad Reza

Differences

Future

Similarities

Introduction

Differences

A word of caution

Some interesting links

Similarities

Introduction

Code for the HTML Example

<html><head><title>Hello World</title></head><body><h1>Hello World</h1></body></html>