O'reilly & Associates)

Total Page:16

File Type:pdf, Size:1020Kb

O'reilly & Associates) JavaServer Pages Hans Bergsten First Edition, December 2000 ISBN: 1-56592-746-X, 572 pages JavaServer Pages shows how to develop Java-based web applications without having to be a hardcore programmer. The author provides an overview of JSP concepts and illuminates how JSP fits into the larger picture of web applications. There are chapters for web authors on generating dynamic content, handling session information, and accessing databases, as well as material for Java programmers on creating Java components and custom JSP tags for web authors to use in JSP pages.JavaServer Pages shows how to develop Java-based web applications without having to be a hardcore programmer. The author provides an overview of JSP concepts and illuminates how JSP fits into the larger picture of web applications. There are chapters for web authors on generating dynamic content, handling session information, and accessing databases, as well as material for Java programmers on creating Java components and custom JSP tags for web authors to use in JSP pages. Release Team[oR] 2001 Preface 1 What's in This Book Audience Organization About the Examples Conventions Used in This Book How to Contact Us Acknowledgments i JSP Application Basics This part of the book describes the fundamentals of HTTP (the protocol used by all web applications), how servlets and JSP are related, and how to set up a JSP development environment and install the book examples. 1 Introducing JavaServer Pages 8 1.1 What Is JavaServer Pages? 1.2 Why Use JSP? 1.3 What You Need to Get Started 2 HTTP and Servlet Basics 13 2.1 The HTTP Request/Response Model 2.2 Servlets 2.3 Packaging Java Web Applications 3 JSP Overview 25 3.1 The Problem with Servlets 3.2 The Anatomy of a JSP Page 3.3 JSP Processing 3.4 JSP Application Design with MVC 4 Setting Up the JSP Environment 34 4.1 Installing the Java Software Development Kit 4.2 Installing the Tomcat Server 4.3 Testing Tomcat 4.4 Installing the Book Examples 4.5 Example Web Application Overview ii JSP Application Development The focus of this part of the book is on developing JSP-based web applications using both standard JSP elements and custom components. Through the use of practical examples, you will learn how to handle common tasks such as validating user input, accessing databases, authenticating users and protecting web pages, localizing your web site, and more. 5 Generating Dynamic Content 42 5.1 What Time Is It? 5.2 Input and Output 6 Using Scripting Elements 55 6.1 Java Primer 6.2 Implicit JSP Objects 6.3 Conditional Processing 6.4 Displaying Values 6.5 Using an Expression to Set an Attribute 6.6 Declaring Variables and Methods 7 Error Handling and Debugging 74 7.1 Dealing with Syntax Errors 7.2 Debugging a JSP-Based Application 7.3 Dealing with Runtime Errors 8 Sharing Data Between JSP Pages, Requests, and Users 87 8.1 Passing Control and Data Between Pages 8.2 Sharing Session and Application Data 8.3 Using Custom Actions 8.4 Online Shopping 8.5 Memory Usage Considerations 9 Database Access 109 9.1 Accessing a Database from a JSP Page 9.2 Input Validation Without a Bean 9.3 Using Transactions 9.4 Application-Specific Database Actions 10 Authentication and Personalization 130 10.1 Container-Provided Authentication 10.2 Application-Controlled Authentication 10.3 Other Security Concerns 11 Internationalization 148 11.1 How Java Supports Internationalization and Localization 11.2 Generating Localized Output 11.3 A Brief History of Bits 11.4 Handling Localized Input 12 Bits and Pieces 165 12.1 Buffering 12.2 Including Page Fragments 12.3 XML and JSP 12.4 Mixing Client-Side and Server-Side Code 12.5 Precompiling JSP Pages 12.6 Preventing Caching of JSP Pages 12.7 How URLs Are Interpreted III: JSP in J2EE and JSP Component Development If you're a programmer, this is the part of the book where the real action is . Here you will learn how to develop your own custom actions and JavaBeans, and how to combine JSP with other Java server-side technologies, such as servlets and Enterprise JavaBeans (EJB). 13 Web Application Models 182 13.1 The Java 2 Enterprise Edition Model 13.2 The MVC Model 13.3 Scalability 14 Combining Servlets and JSP 190 14.1 Using a Servlet as the Controller 14.2 A More Modular Design Using Action Objects 14.3 Sharing Data Between Servlets and JSP Pages 14.4 Using a JSP Error Page for All Runtime Errors 15 Developing JavaBeans for JSP 200 15.1 JavaBeans as JSP Components 15.2 JSP Bean Examples 15.3 Unexpected <jsp:setProperty> Behavior 16 Developing JSP Custom Actions 213 16.1 Tag Extension Basics 16.2 Developing a Simple Action 16.3 Processing the Action Body 16.4 Letting Actions Cooperate 16.5 Creating New Variables Through Actions 16.6 Developing an Iterating Action 16.7 Creating the Tag Library Descriptor 16.8 Validating Syntax 16.9 How Tag Handlers May Be Reused 16.10 Packaging and Installing a Tag Library 17 Developing Database Access Components 235 17.1 Using Connections and Connection Pools 17.2 Using a Generic Database Bean 17.3 Developing Generic Database Custom Actions 17.4 Developing Application-Specific Database Components iv Appendixes In this part of the book, you find reference material, such as descriptions of JSP elements and classes, all book example components, the web application deployment descriptor, and more. A JSP Elements Syntax Reference 260 A.1 Directive Elements A.2 Scripting Elements A.3 Action Elements A.4 Comments A.5 Escape Characters B JSP API Reference 270 B.1 Implicit Variables B.2 Servlet Classes Accessible Through Implicit Variables B.3 Tag Extension Classes B.4 Other JSP Classes C Book Example Custom Actions and Classes Reference 312 C.1 Generic Custom Actions C.2 Internationalization Custom Actions C.3 Database Custom Actions C.4 Utility Classes C.5 Database Access Classes D Web-Application Structure and Deployment Descriptor Reference 337 D.1 Web Application File Structure D.2 Web Application Deployment Descriptor D.3 Creating a WAR File E JSP Resource Reference 346 E.1 JSP-Related Products E.2 Web Hosting E.3 Information and Specifications Colophon 350 JavaServer Pages (JSP) technology provides an easy way to create dynamic web pages. JSP uses a component- based approach that allows web developers to easily combine static HTML for look-and-feel with Java components for dynamic features. The simplicity of this component-based model, combined with the cross-platform power of Java, allows a web development environment with enormous potential. JavaServer Pages shows how to develop Java-based web applications without having to be a hardcore programmer. The author provides an overview of JSP concepts and discusses how JSP fits into the larger picture of web applications. Web page authors will benefit from the chapters on generating dynamic content, handling session information, accessing databases, authenticating users, and personalizing content. In the programming- oriented chapters, Java programmers learn how to create Java components and custom JSP tags for web authors to use in JSP pages. JavaSercer Pages Preface JavaServer Pages™ (JSP) is a new technology for web application development that has received a great deal of attention since it was first announced. Why is JSP so exciting? One reason is that JSP is Java-based, and Java is well-suited for enterprise computing. In fact, JSP is a key part of the Java™ 2 Enterprise Edition (J2EE) platform and can take advantage of the many Java Enterprise libraries, such as JDBC, JNDI, and Enterprise JavaBeans™. Another reason is that JSP supports a powerful model for developing web applications that separates presentation from processing. Understanding why this is so important requires a bit of a history lesson. In the early days of the Web, the only tool for developing dynamic web content was the Common Gateway Interface (CGI). CGI outlined how a web server made user input available to a program, as well as how the program provided the web server with dynamically generated content to send back. CGI scripts were typically written in Perl. (In fact, CGI Perl scripts still drive numerous dynamic web sites.) However, CGI is not an efficient solution. For every request, the web server has to create a new operating-system process, load a Perl interpreter and the Perl script, execute the script, and then dispose of the entire process when it's done. To provide a more efficient solution, various alternatives to CGI have been added to programmers' toolboxes over the last few years: FastCGI, for example, runs each CGI program in an external permanent process (or a pool of processes). In addition, mod_perl for Apache, NSAPI for Netscape, and ISAPI for Microsoft's IIS all run server-side programs in the same process as the web server itself. While these solutions offer better performance and scalability, each one is supported by only a subset of the popular web servers. The Java Servlet API, introduced in early 1997, provides a solution to the portability issue. However, all these technologies suffer from a common problem: HTML code embedded inside programs. If you've ever looked at the code for a servlet, you've probably seen endless calls to out.println( ) that contain scores of HTML tags. For the individual developer working on a simple web site this approach may work fine, but it makes it very difficult for people with different skills to work together to develop a web application. This is becoming a significant problem.
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]
  • 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]
  • 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]
  • 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]
  • Surface Contents Author Index
    Surface Contents Author Index Mu-Lin WU, Chiou-Hsiung CHEN & Chih-Hsin CHEN DESIGN AND OPERATION OF SPATIAL DECISION SUPPORT SYSTEMS FOR WATER RESOURCE PROTECTION a b b Mu-Lin WU , Chiou-Hsiung CHEN , Chih-Hsin CHEN aCivil Engineering Dept., National Pingtung Univ. of Science and Technology, 39-13 TongZong Road, Dali, Taichung County, 41244, Taiwan [email protected] bTaipei Watershed Management Bureau, WRA, MOEA, 5, Lane 45, Sec. 1, Peihsin Road, Hsien-Ten, Taipei 231, Taiwan [email protected] Commission II, WG IC II /5 KEY WORDS: Spatial decision support systems, Water resource protection ABSTRACT: Spatial decision support systems for water resource protection at Taipei Watershed Management Bureau (TWMC) have been pursued for more than a decade. There are five townships and two watersheds under jurisdiction of TWMC. The whole area under management of water resource protection is 717 square kilometres. The management objective is to provide sustainable drinking water for a population about four millions in Taipei. Management prescriptions for water resource protection at TWMC are not confined to traditional approaches. Design of spatial decision support systems for water resource protection was mainly focused on integration of techniques such as remote sensing, geographic information systems (GIS), and global positioning systems (GPS). The major ingredients of spatial decision support systems are web-based GIS which can bring relevant information for management of water resource protection for a given location say, x and y coordinates, a single sheet of map, a township, even a watershed. All maps, satellite images, and orthophoto maps were stored in scalable vector graphics (SVG) format.
    [Show full text]
  • Best Practices for Securing E-Commerce Special Interest Group PCI Security Standards Council
    Standard: PCI Data Security Standard (PCI DSS) Date: April 2017 Authors: Best Practices for Securing E-commerce Special Interest Group PCI Security Standards Council Information Supplement: Best Practices for Securing E-commerce Information Supplement • Best Practices for Securing E-commerce • April 2017 Document Changes Date Document Version Description Pages January 2013 1.0 Initial release All January 2017 1.1 Expanded and revised Various content based upon the Securing e-Commerce Special Interest Group April 2017 1.2 Corrected entries in table, Various Section 2.7 typographical and grammatical errors The intent of this document is to provide supplemental information. Information provided here does ii not replace or supersede requirements in any PCI SSC Standard. Information Supplement • Best Practices for Securing E-commerce • April 2017 Table of Contents Document Changes ................................................................................................................................................. ii 1 Introduction ........................................................................................................................................................ 5 1.1 Background ................................................................................................................................................... 5 1.2 Intended Audience ........................................................................................................................................ 7 1.3 Terminology .................................................................................................................................................
    [Show full text]
  • Parametric Web-CAD for Box Culvert Design
    147 Parametric Web-CAD for Box Culvert Design Julian H. Kang1, Byeong-Cheol Lho2 and Sang-Rung Choi3 1Texas A&M University, [email protected] 2Sangji University, [email protected] 3Hanseok Engineering Co., Ltd., [email protected] ABSTRACT This paper presents a development of Web applications to improve the process of a box culvert design and document management using XML and SVG. The box culvert is one of the simple and common structures employed repetitively in road construction. Although parametric computer applications have demonstrated a significant amount of time savings in designing simple and repetitive structures, circulating resultant electronic documents among project participants has not been fully integrated with these applications. We developed a parametric Web application in order to facilitate not only engineering design of the box culvert but also management of resultant documents over the Web. This paper presents how XML Data Island and SVG were utilized to generate engineering drawings and display them in the Web page. Keywords: Design Automation, Web-CAD, XML, SVG projects. Web-based project management, which stores 1. INTRODUCTION information in the central repository, therefore has A box culvert is one of the common structures employed attracted many AEC firms because of its potential ability in road construction. Over the last decade, many box of building a project legacy database by collecting culverts have been constructed in Korea. The shape of electronic documents in the central repository. The these box culverts is fairly simple and typical no matter frequency and cost of the bridge repairs made a public where they were built.
    [Show full text]