1 / 11

The need for server pages

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

Download Presentation

The need for server pages

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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: November 9, 2014

  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 ASP………A page in JSP

  3. Output of an ASP page code

  4. Code for the ASP example <html> <head> <title>Hello World</title> </head> <body> <%response.write "<h1>Hello World</h1>"%> </body> </html>

  5. Output of a JSP page code

  6. Code for the JSP example <html> <head> <title>Hello World</title> </head> <body> <h1> <% out.println("Hello World"); %> </h1> </body> </html>

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

  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 <html> <head> <title>Hello World</title> </head> <body> <h1>Hello World</h1> </body> </html>

More Related