The need for server pages

11
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 The need for server pages Last Updated: July 20, 2022

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

Page 1: 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

Page 2: 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•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

Page 3: 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

Output of an ASP page

code

Page 4: 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

Code for the ASP example

<html>

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

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

</html>

Page 5: 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

Output of a JSP page

code

Page 6: 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

Code for the JSP example

<html>

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

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

</html>

Page 7: 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

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

Page 8: 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

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

Page 9: 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• http://www.w3schools.com

• http://www.jsptut.com

Resource Links on the Web

Page 10: 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

An Example HTML Page

code

Page 11: 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

Code for the HTML Example

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