The need for server pages - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

The need for server pages

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 ... – PowerPoint PPT presentation

Number of Views:70
Avg rating:3.0/5.0
Slides: 12
Provided by: Abb122
Learn more at: http://krypton.mnsu.edu
Category:

less

Transcript and Presenter's Notes

Title: The need for server pages


1
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
  • Non-static
  • Complement HTML to present dynamic data.
  • Example languages ASP, JSP

Last Updated January 2, 2016
2
Similarities Between ASP and JSP
  • 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 ASPA page in JSP

3
Output of an ASP page
  • code

4
Code for the ASP example
  • lthtmlgt
  • ltheadgt
  • lttitlegtHello Worldlt/titlegt
  • lt/headgt
  • ltbodygt
  • ltresponse.write "lth1gtHello Worldlt/h1gt"gt
  • lt/bodygt
  • lt/htmlgt

5
Output of a JSP page
  • code

6
Code for the JSP example
  • lthtmlgt
  • ltheadgt
  • lttitlegtHello Worldlt/titlegt
  • lt/headgt
  • ltbodygt
  • lth1gt
  • lt out.println("Hello World") gt
  • lt/h1gt
  • lt/bodygt
  • lt/htmlgt

7
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

8
A word of caution
  • Objectivity is lost on diehard fans of either
    languages
  • With advances in both languages its 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

9
Resource Links on the Web
  • http//www.w3schools.com
  • http//www.jsptut.com

10
An Example HTML Page
code
11
Code for the HTML Example
lthtmlgt ltheadgt lttitlegtHello Worldlt/titlegt lt/headgt lt
bodygt lth1gtHello Worldlt/h1gt lt/bodygt lt/htmlgt
Write a Comment
User Comments (0)
About PowerShow.com