SE Using Active Server Pages

Total Page:16

File Type:pdf, Size:1020Kb

SE Using Active Server Pages 1 INTRODUCTION Introduction What do we really know about the Internet? The Internet is an unregulated band of computers that continuously share information. This information may contain fundamental truths, profound thoughts and visions, or integrated deceit and outright lies. How many people are under the impres- sion that because they found information on the Web, that the information is absolute truth? The only thing that can definitely be said about the Internet is that it is a network of computers that provides a vast distribution medium to a countless number of people. However, tapping into this vast resource base is only as effective as the communication mechanism between you and your target audience and the ability of the audience to receive and process the information. Speakers and televi- sion screens are useless without a transmitter to translate and receive radio and television signals. Likewise, the multitudes of thin-client browsers are rendered useless without an effective, application-oriented Web server. ■ 01.1389-6 Intro 1 10/26/98, 8:47 AM Brands3/Stone4 SEU Active Server Pages #1389-6 SRing 11/14/97 Intro lp#3 2 Introduction The Purpose of This Book With the integration of the Microsoft Internet Information Server 4.0, the Microsoft Transac- tion Server, and Active Server Pages, the power of distributing worthwhile applications over the Web is a reality, which leads to the vision of this book. This book is solely dedicated to demonstrating the powerful functionality of Active Server Pages to deliver real-world applica- tions over the Web. In order to fully understand Web application development, you first have to recognize that this environment is not the traditional development environment you are used to. Even though the phrase “it’s just HTML,” echoed from many IS managers’ offices, many of the inherent develop- ment issues taken for granted in traditional application development are not available in the stateless world of HTTP. In addition, applications have become more content-centric rather than process-centric. The new development team now includes content creators, graphic art- ists, and network engineers, as well as traditional application developers, database program- mers, and project managers. Active Server Pages provide a powerful interface to develop programming logic that can be used to implement and distribute your information through applications across the Web. The book provides a systematic, hands-on approach to decrease the Web-based learning curve to implement Active Server Page technology. Who Should Use This Book This book is targeted for the existing application developer that has some experience develop- ing client/server applications, yet provides a basic foundation for newer developers. Remember, the goal of this book is to provide a knowledge transfer mechanism that enables application developers to transition their existing experience developing applications into building robust, scalable, Web-based applications using Active Server Pages. At the same time, this book pro- vides the foundation to help push beginning- and junior–level application developers into the more advanced developer roles. This book does not require developers to have experience developing applications with Active Server Pages. This book is intended to leverage developers with some Microsoft Visual Basic skills and database development skills and apply that knowledge to Web application develop- ment. However, to help those with less experience in Web development and Visual Basic to quickly come up to speed in developing Web-based applications, Parts I and II of the book are designed to give an architecture perspective and a primer of VBScript. This primer is intended not to teach every detail of VBScript, but is designed to show developers the needed program- ming functionality to rapidly produce ASP applications. 01.1389-6 Intro 2 10/26/98, 8:47 AM Brands3/Stone4 SEU Active Server Pages #1389-6 SRing 11/14/97 Intro lp#3 How the Book Is Organized 3 How the Book Is Organized This book is organized in a manner that demonstrates what it takes to build, develop, and de- liver Web-based applications. As you might expect, it starts with the basics and proceeds to the more advanced topics. This organization goal is intended to create an environment that pro- vides a smooth transition from the highly defined application development tools available today to the much broader development environment that forms Web-based programming. This book is separated into six parts, each part building off the preceding to demonstrate the technical evolution of Active Server Pages. Each part of the book ends with an example chapter that demonstrates the use of the various objects and tools covered in the preceding chapters. Even though the content of each part may be technically different, all of the examples focus on using Active Server scripts to build enterprise Web-based applications. ■ Part I Introduction to Active Server Pages ■ Part II VBScript: The Foundation of Active Server Pages ■ Part III Active Server Objects: The Essential Building Blocks ■ Part IV Active Server Components ■ Part V Database Management with Active Server Pages ■ Part VI Active Server Pages and the Enterprise Solution ■ Appendixes Part I Introduction to Active Server Pages Part I focuses on introducing the high-level, conceptual layers needed to understand Web- based application development. This part of the book describes the differences between static and dynamic Web sites and how delivering Web-enabled applications requires a host of inte- grated systems working together. Part II VBScript: The Foundation of Active Server Pages Part II introduces the primary scripting language driving Active Server Pages functionality. VBScript provides the interpretation or processing layer between the requesting browser and server-side data storage units. Active Server Pages use VBScript to convert coded processing logic into native HTML. The pure HTML output is then accessible to any HTML-compatible browser type. Part III Active Server Objects: The Essential Building Blocks Part III demonstrates the core functionality of Active Server Pages. Active Server Pages are comprised of six programmable objects that are used to manipulate, manage, and control the various aspects of Web processing. This part focuses on identifying the scope and composition of Active Server Pages applications and how each object can be utilized in delivering your Web- based applications. 01.1389-6 Intro 3 10/26/98, 8:47 AM Brands3/Stone4 SEU Active Server Pages #1389-6 SRing 11/14/97 Intro lp#3 4 Introduction Part IV Active Server Components Part IV discovers how components can be used to implement additional functionality on your Web site and Web server applications. These components can be used to perform application functionality that might not be made available through native VBScript. Furthermore, these components provide the basic links to tap into other information stores accessible to the Web servers. This part of the book closes with the creation of a sample Web site that uses most of the installed Internet Information Server components. Part V Database Management with Active Server Pages Part V focuses on using the ActiveX Data Object to provide a rich set of database functionality. Active Serve Pages can use the Active Data Object to insert, update, and delete information from any ODBC-compliant database. This section wraps up by adding database functionality to an online catalog Web site. Part VI Active Server Pages and the Enterprise Solution Part VI demonstrates how Active Server Pages technology is used within a variety of Web- based systems to help build, manage, and distribute your Web applications. This part of the book demonstrates using the Microsoft Transaction Server to maximize resource and database connection-polling features, how to use the Visual InterDev ASP development tool, and how to manage your site with the Internet Information Server 4.0. Further, this part of the book ex- plains the role of the Microsoft Message Queue Server and how to build intranet/extranet capabilities for your sites and applications. This part of the book ends with converting the sample Web online catalog registration system into a distributed n-tier application database- driven application. Conventions Used in This Book Que has over a decade of experience developing and publishing the most successful com- puter books available. With that experience, we’ve learned what special features help readers the most. Look for these special features throughout the book to enhance your learning experience. The following font conventions are used in this book to help make reading it easier: ■ Italic type is used to introduce new terms. ■ Screen messages, code listings, and command samples appear in monospace type. ■ Shortcut keys are denoted with underscores. TIP Tips present advice on a quick or often overlooked procedure. These include shortcuts. CAUTION Cautions warn you about potential problems that may cause unexpected results or mistakes to avoid. 01.1389-6 Intro 4 10/26/98, 8:47 AM Brands3/Stone4 SEU Active Server Pages #1389-6 SRing 11/14/97 Intro lp#3 Conventions Used in This Book 5 NOTE Notes present interesting or useful information that isn’t necessarily essential to the discussion. A note provides additional information that may help you avoid problems or offers advice that relates to the topic. ■ This is an exciting time to be an application developer. The new Web-based application
Recommended publications
  • Active Server Pages (ASP)
    Active Server Pages (ASP) Outline 11.1 Introduction 11.2 How Active Server Pages Work 11.3 Client-side Scripting versus Server-side Scripting 11.4 Using Personal Web Server or Internet Information Server 11.5 A Simple ASP Example 11.6 Server-side ActiveX Components 11.7 File System Objects 11.8 Session Tracking and Cookies 11.9 Accessing a Database from an Active Server Page 11.10 Case Study: A Product Catalog 11.1 Introduction • Active Server Pages (ASP) – Processed in response to client request – ASP file contains HTML and scripting code – VBScript de facto language for ASP scripting • Other languages can be used – JavaScript – .asp file extension – Microsoft-developed technology – Send dynamic Web content • HTML • DHTML • ActiveX controls • Client-side scripts • Java applets 11.2 How Active Server Pages Work • Client sends request – Server receives request and directs it to ASP – ASP processes, then returns result to client • HTTP request types – Request methods • GET – Gets (retrieves) information from server – Retrieve HTML document or image • POST – Posts (sends) data to server – Send info from HTML form » Client-entered data » Info to search Internet » Query for a database » Authentication info 11.2 How Active Server Pages Work (II) • Browsers often cache Web pages – Cache: save on disk – Typically do not cache POST response • Next POST request may not return same result • Client requests ASP file – Parsed (top to bottom) by ActiveX component asp.dll • ActiveX component: server-side ActiveX control that usually does not have GUI
    [Show full text]
  • Taking Advantage of the SAS System on Windows NT
    Taking advantage of the SAS System on Windows NT Mark W. Cates, SAS Institute Inc., Cary, NC ABSTRACT Unless specified, all the SAS System products and features are provided on both Windows NT Windows NT is fast becoming the universal Workstation and Windows NT Server. This desktop client operating system as well as an paper assumes the current release of Windows important file and compute server for mission NT is Version 4.0. For brevity, the abbreviation critical applications. This paper presents a NT will be used for Windows NT. discussion of the state of Windows NT and how the SAS System Release 6.12 for Windows takes advantage and integrates with the operating Windows Family - Single Executable Image system. Areas such as the user interface, OLE and Web integration are presented. Data access Windows NT is now in its full 3rd generation, and Microsoft BackOffice integration, and with the release of Windows NT Workstation hardware considerations are also presented. 4.0 and Windows NT Server 4.0. NT Workstation and NT Server share the same microkernel, and is portable to several RISC INTRODUCTION platforms, including DEC Alpha AXP, and the PowerPC Prep Platforms. The MIPS chip Microsoft Windows NT sales grew dramatically is no longer supported by Windows NT. The in 1996, as many corporations which have been majority of NT installations still run on the Intel investigating Windows NT have now begun to Pentium® and Pentium Pro® processor. The deploy Windows NT for the client desktop. SAS System Release 6.12 only supports the Intel Many of these deployments were replacing platform, and the Pentium Pro processor is ® Windows 3.1 and Windows 95 .
    [Show full text]
  • Active Server Pages Architecture
    Active Server Pages Architecture Li Yi South Bank University Contents 1. Introduction ...................................................................................................................................... 2 1.1 Host-based databases ............................................................................................................... 2 1.2 Client/server databases ............................................................................................................ 2 1.3 Web databases........................................................................................................................... 3 2. Active Server Pages ........................................................................................................................ 5 2.1 ASP Components ...................................................................................................................... 6 2.2 ADO and Database................................................................................................................... 7 2.3 The steps of executing a query ............................................................................................. 11 3 ASP Attributes ................................................................................................................................ 12 References:.......................................................................................................................................... 13 1 1. Introduction The development of databases always comes
    [Show full text]
  • Implementing OGC Web Map Service Client Applications Using JSP, JSTL and XMLC
    Implementing OGC Web Map Service Client Applications Using JSP, JSTL and XMLC Hao Ding , Richard Pascoe & Neville Churcher Department of Computer Science University of Canterbury. Christchurch, New Zealand Phone: +64 3 364-2362 Fax: +64 3 364-2569 Email: [email protected] , {richard, neville}@cosc.canterbury.ac.nz Presented at SIRC 2002 – The 14th Annual Colloquium of the Spatial Information Research Centre University of Otago, Dunedin, New Zealand th December 3-5 2002 ABSTRACT Java technologies are widely used in web application development. In this paper are described three approaches to developing Java-based web applications and our experiences with applying each to the development of client that interact with servers implementing the OGC (Open GIS Consortium) Web Map Service (WMS) specification. Also described is the installation and configuration of open source software that implements the WMS specification. The paper is concluded with some preliminary insights into when one of the three approaches to WMS client implementation is more suited to another. Keywords and phrases: WMS, JSP, JSTL, XMLC, map layer, web map server 1.0 INTRODUCTION Of the many technologies, such as Common Gateway Interface (CGI), Active Server Pages (ASP), JavaServer Pages (JSP), that are used to develop web applications, three are of particular interest to the research presented here. These three technologies or approaches to developing clients that utilise web services are JavaServer Pages (JSP), JSP with the use of tags from the JSP Standard Tag Library (JSTL), and the eXtensible Markup Language Compiler (XMLC). JSP is a more convenient way to write Java servlets, and allows the insertion of Java code directly into static HTML (Hypertext Markup Language) pages.
    [Show full text]
  • Implementing X.400 Backbones a Guide for Planners and Support Staff
    Implementing X.400 Backbones A Guide for Planners and Support Staff David Ferris Cemil Betanov Ferris Research information for planners and implementers of enterprise messaging Copyright ©1995 by Ferris Research, Inc. All rights reserved. Reproduction prohibited without permission. No part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or by any means—electronic, photocopying, mechanical, recording, known today or hereafter invented—without the prior written permission of Ferris Research. The material contained herein is based on information Ferris Research believes is reliable, but its accuracy and completeness cannot be guaranteed. No liability is assumed for the use of any materials presented herein, nor for any errors or ommisions which may remain. Copyright ©1995 by Ferris Research, Inc. All rights reserved. Reproduction prohibited without permission. For Jean and Nicholas For Rossana, Emile, and Adrian Table of Contents Sponsor Credits Preface iii How the Report is Organized iii Development Method iv Product Assessments iv Development Team vii David Ferris, Editor and Principal Investigator vii Cemil Betanov, Co-Author vii About Ferris Research viii Authors' Thanks ix Executive Summary xi Report Highlights xii Alternative Technologies xii Message Transfer System xii Directories xiii Gateways xiii APIs xiii Management xiii X.400 UAs xiv ADMDs xiv Other xv 1. Introduction 17 1.1 Messaging System Services 17 Fundamental Services 19 Message Preparation Services 19 Message Store Services 20
    [Show full text]
  • Tool Support for Computer Role-Playing Game Programming: Foundations, Guidelines and Applications
    Tampereen teknillinen yliopisto. Julkaisu 1237 Tampere University of Technology. Publication 1237 Juha-Matti Vanhatupa Tool Support for Computer Role-Playing Game Programming: Foundations, Guidelines and Applications Thesis for the degree of Doctor of Science in Technology to be presented with due permission for public examination and criticism in Tietotalo Building, Auditorium TB222, at Tampere University of Technology, on the 17th of October 2014, at 12 noon. Tampereen teknillinen yliopisto - Tampere University of Technology Tampere 2014 ISBN 978-952-15-3341-9 (printed) ISBN 978-952-15-3393-8 (PDF) ISSN 1459-2045 Abstract Computer role-playing games (CRPGs) are a genre of computer games, which aim at providing similar player experience than their ancestors, paper-and- pen role-playing games. For a type of digital games, their evolution is already rather long, as the first ones were created in 1980s. Typically CRPGs em- phasize character development and to support this huge fantasy worlds and sophisticated storylines are also present. CRPG development has unique challenges, which derive from these typical features. Content creation is a continuous issue, since huge virtual worlds and long storylines must be filled with content. Personalization is also an important issue, because all fun of creating personalized character is lost if it has no effect into the game. Low starting threshold is important for successful game. It is becoming essential that the player can start playing quickly and she is not required to spent time waiting the installation to be completed. This can be achieved by web-based approach, since web-based games do not require installations.
    [Show full text]
  • Developing an E-Commerce System Using Active Server Pages
    Developing an E-Commerce System Using Active Server Pages Robert W. Ingram Ross-Culverhouse Chair Culverhouse School of Accountancy University of Alabama Box 870220 Tuscaloosa, AL 35487 (205) 348-2907 [email protected] Dale L. Lunsford Assistant Professor Culverhouse School of Accountancy University of Alabama Box 870220 Tuscaloosa, AL 35487 (205) 348-5780 [email protected] August 2002 Developing an E-Commerce System Using Active Server Pages Abstract: This paper describes a case to illustrate analysis, design, and implementation issues involving a multi-tier e-commerce system. The case is designed for use in advanced accounting systems or systems analysis and design courses. The case involves analysis of a sales order system that will be implemented using a web interface and relational database, conceptual design of the system, and implementation of the system. A variety of tasks are involved in the case, but an instructor can select the tasks of relevance in a particular course. Key Words: E-commerce, systems analysis and design, systems development, security. Data Availability: All data and programs described are available from the authors. 1 Developing an E-Commerce System Using Active Server Pages I. Introduction Web-based applications are an important means of accessing business information. E-commerce represents an increasingly important part of the economy and is an obvious source of demand for web-based systems. In addition, companies may use the Internet for internal communications because of the ability of employees to access data from locations throughout the world. Companies like Oracle and SAP are increasingly focusing on the Web as a means of deploying their software products.
    [Show full text]
  • Microsoft 2013 Partner of the Year
    2015 MPN Partner of the Year Awards Award Guidelines Preview for Partners Self-Nominate Using Award Submission Tool Tool Opens on February 18, 2016 and Closes on April 7, 2016 https://partner.microsoft.com/en-us/wpc/awards Table of Contents Table of Contents ........................................................................................................................................... 2 Introduction ..................................................................................................................................................... 4 Instructions for Preparing Award Nominations .................................................................................. 5 Citizenship Awards ........................................................................................................................................ 6 Innovative Technology for Good Citizenship ................................................................................................... 6 YouthSpark Citizenship ............................................................................................................................................ 8 Competency Based Awards ..................................................................................................................... 10 Application Development...................................................................................................................................... 10 Cloud Business Licensing – Guidelines Coming Soon ...............................................................................
    [Show full text]
  • Web Based Applications, Tomcat and Servlets - Lab 3
    CMPUT 391 Database Management Systems Web based Applications, Tomcat and Servlets - Lab 3 - CMPUT 391 – Database Management Systems Department of Computing Science University of Alberta The Basic Web Server Lab 3 CMPUT 391 – Database Management Systems 2 Tomcat and Servlets CGI CGI – Common Gateway Interface Processing forms & Generating dynamic content (early solution ) Spawning an external program, pass the data from the HTML form to the program Limitation: An expensive process (Spawning an external program) Lab 3 CMPUT 391 – Database Management Systems 3 Tomcat and Servlets CGI: Illustration Browser Browser Browser Browser GET Response Form.cgi Web Server Web Server Web Server Web Server Spawn an Read environment external program variables Response Start form.cgi CGfoI rPmr.ocggria m CGI Program CGI Program CteGrIm Pinroagterasm time Lab 3 CMPUT 391 – Database Management Systems 4 Tomcat and Servlets ASP ASP – Active Server Pages Microsoft’s answers to CGI programming ASP page - a Web page with code embedded inside, interpreted by the Web server Using special HTML tags, VBScript/JavaScript code can be inserted Lab 3 CMPUT 391 – Database Management Systems 5 Tomcat and Servlets Servlets Java technology's answer to CGI programming A Java class handling forms on Java Web servers Applet -- a little piece of program (client side) Servlet -- a little piece of program (server side) A servlet can do everything that a CGI program can Running inside the JVM along with the Web server itself Lab 3 CMPUT 391 – Database Management
    [Show full text]
  • Computer Information Systems: Web Applications (CISW) 1
    Computer Information Systems: Web Applications (CISW) 1 CISW 24 Secure Web Server Programming in Python COMPUTER INFORMATION 3 Units (Degree Applicable) Lecture: 54 SYSTEMS: WEB Corequisite: CISW 24L Secure web programming to create user interfaces, extract information APPLICATIONS (CISW) and manage databases, manage files, format reports, and access web CISW 15 Web Site Development servers using Python programming language. Student must be enrolled in 3.5 Units (Degree Applicable, CSU) CISW 24L, a concurrent lab co-requisite. Lecture: 54 Lab: 27 CISW 24L Secure Web Server Programming in Python Laboratory Advisory: CISB 15 or CISB 16 0.5 Units (Degree Applicable) Lab: 27 Plan, develop, implement, publish, and maintain Web sites with a Corequisite: CISW 24 professional visual Web-authoring application, includes working with text and images, internal and external hyperlinks, image maps, tables, Laboratory for secure web programming to create user interfaces, extract Cascading Style Sheets (CSS), Web page content, Web forms, multimedia information and manage databases, manage files, format reports, and objects (Flash text, Flash buttons, sounds, and video), interactions and access web servers using Python programming language. Student must behaviors, and Web page templates. Principles of Web site structures, be enrolled in CISW 24, a concurrent lecture co-requisite. documentation, management, and maintenance will be discussed. CISW 31 Secure Web Server Programming in PHP CISW 17 HTML, CSS, and JavaScript Programming 3 Units (Degree Applicable) 3 Units (Degree Applicable, CSU) Lecture: 54 Lecture: 54 Corequisite: CISW 31L Advisory: CISB 11 Advisory: (CISN 34 and CISN 34L) or (CISW 24 and CISW 24L) Plan, program, implement, publish, and maintain web sites using Plan, install, and manage secure Apache Web servers using server Hypertext Markup Language version 5 (HTML5), Cascading Style Sheets side programming language like PHP (PHP: Hypertext Preprocessor) to version 3 (CSS3), and JavaScript.
    [Show full text]
  • NIST SP 800-28 Version 2 Guidelines on Active Content and Mobile
    Special Publication 800-28 Version 2 (Draft) Guidelines on Active Content and Mobile Code Recommendations of the National Institute of Standards and Technology Wayne A. Jansen Theodore Winograd Karen Scarfone NIST Special Publication 800-28 Guidelines on Active Content and Mobile Version 2 Code (Draft) Recommendations of the National Institute of Standards and Technology Wayne A. Jansen Theodore Winograd Karen Scarfone C O M P U T E R S E C U R I T Y Computer Security Division Information Technology Laboratory National Institute of Standards and Technology Gaithersburg, MD 20899-8930 March 2008 U.S. Department of Commerce Carlos M. Gutierrez, Secretary National Institute of Standards and Technology James M. Turner, Acting Director GUIDELINES ON ACTIVE CONTENT AND MOBILE CODE Reports on Computer Systems Technology The Information Technology Laboratory (ITL) at the National Institute of Standards and Technology (NIST) promotes the U.S. economy and public welfare by providing technical leadership for the nation’s measurement and standards infrastructure. ITL develops tests, test methods, reference data, proof of concept implementations, and technical analysis to advance the development and productive use of information technology. ITL’s responsibilities include the development of technical, physical, administrative, and management standards and guidelines for the cost-effective security and privacy of sensitive unclassified information in Federal computer systems. This Special Publication 800-series reports on ITL’s research, guidance, and outreach efforts in computer security and its collaborative activities with industry, government, and academic organizations. National Institute of Standards and Technology Special Publication 800-28 Version 2 Natl. Inst. Stand. Technol. Spec. Publ.
    [Show full text]
  • Theme JEE and .Net OMA Implementations (Part 1)
    Application Servers Session 4 – Main Theme JEE and .Net OMA Implementations (Part 1) Dr. Jean-Claude Franchitti 1 Icons / Metaphors Information Common Realization Knowledge/Competency Pattern Governance Alignment Solution Approach 22 Web Application Servers Architectures (Evolution) Traditional client-server technology CGI frameworks Page-based extended HTML environments Distributed object computing platforms Java-Based Object Management Architectures (OMAs) Component-based computing environments Web Services platforms Next generation application servers (reflective, multimedia- and agent enabled, MDA-compliant, etc.) 3 Web Application Servers Architectures (Page-Based Extended HTML Environments Details) Application Servers for Enhanced HTML (traditional) a.k.a., Page-Based Application Servers Tag-Oriented (e.g., Macromedia ColdFusion 5.0 Server) Script Oriented (e.g., Microsoft IIS with ASP, PHP) Mostly Used to Support Standalone Web Applications Typically less expensive than standalone and IDE-based servers HTML-based development New Generation Page-Based Script-Oriented App. Servers First Generation Extensions (e.g., Microsoft IIS with COM+/ASP) Servlet/JSP Environments XSP Environment Can now be used as front-end to enterprise applications Hybrid development environments 4 Web Application Servers Architectures (Beyond Page-Based Extended HTML Environments Details) Distributed Object Computing Platforms Provide an infrastructure for distributed communications enabling Still need to merge traditional web-oriented
    [Show full text]