© MIT 2000 Building Web Applications With Webjects Michael D. Barker The MIT Educational Media Creation Center September 2001.

Slides:



Advertisements
Similar presentations
Jump to Contents Instructor Tutorial essignments.com Paperless assignment submission system.
Advertisements

The Librarian Web Page Carol Wolf CS396X. Create new controller  To create a new controller that can manage more than just books, type ruby script/generate.
Tutorial 6 Creating a Web Form
Images, Tables, lists, blocks, layout, forms, iframes
Capturing user input: Using HTML FORMs User input Up till now, our HTML documents have all been directed at outputting information to the user However,
Capturing user input: Using HTML FORMs CS4320 got here on 27/11/2003.
Building ASP.NET Applications 2 Lecture 3,4 T. Ahlam Algharasi 4 th Level.
Customizing Outlook. Forms Window in which you enter and view information in Outlook Outlook Form Designer The environment in which you create and customize.
1 Wireless Warehouse Management System Compsee’s M.A.T. Mobile Application Terminal.
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
CO1552 Web Application Development HTML Forms. Websites can be made more interactive by providing facilities for users to provide data To get user entered.
Lecture 6 – Form processing (Part 1) SFDV3011 – Advanced Web Development 1.
Forms and Form Controls Chapter What is a Form?
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Denise Luther Senior IT Consultant Practical Technology Enablement with Enterprise Integrator.
Name Teacher: Group: 1 Unit 2 – Webpage Creation.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
Creating a Web Site to Gather Data and Conduct Research.
ALLIANCE Administration 20 Oct 2009 (Based on Release 2.2) Michaël Petit.
Create a New Layaway in the LayThisAway System A step-by-step guide to creating a new Layaway in the LayThisAway System.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Advanced FrontPage Forms, Page Templates and Wizards, Behaviors, CSS, DWT and Page Layout.
PHP+MySQL Integration. Connecting to databases One of the most common tasks when working with dynamic webpages is connecting to a database which holds.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
State of Kansas Travel Authorizations Statewide Management, Accounting and Reporting Tool Entering a Travel Authorization Navigation: Employee Self Service.
IFORM ACCOUNT MAINTENANCE ICT4D SESSION 4. IFORMBUILDER WEBSITE REQUIREMENTS To access the iFormBuilder website, you need the following items: -Reliable.
HTML Forms.
Dreamweaver MX. 2 Overview of Templates n Forms enable you to collect data from ______. n A form contains ________ such as text fields, radio buttons,
Week 9 - Form Basics Key Concepts 1. 1.Describe common uses of forms on web pages 2.Create forms on web pages using the form, input, textarea, and select.
USING XML AS A DATA SOURCE. Data binding is a process by which information in a data source is stored as an object in computer memory. In this presentation,
HTML FORMS GET/POST METHODS. HTML FORMS HTML Forms HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes,
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Session Session 15 FAFSA on the Web - Onward and Upward!
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Microsoft FrontPage 2003 Illustrated Complete Creating a Form.
XRX Basic CRUDS Create, Read, Update and Delete and Search XML Data Date: May 2011 Dan McCreary President Dan McCreary & Associates
INTRODUCTORY GUIDE TO SURPLUS LINE INFORMATION PORTAL 2.0 (SLIP) CALIFORNIA’S ELECTRONIC FILING SYSTEM THE SURPLUS LINE ASSOCIATION OF CALIFORNIA Quick.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
© MIT 2000 Building Web Applications With Webjects Michael D. Barker The MIT Educational Media Creation Center November 2001.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Website Forms / Data Acquisition.
JAVA BEANS JSP - Standard Tag Library (JSTL) JAVA Enterprise Edition.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Contract Invoice Guide
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
TIU Note Templates. Learning Objectives Discuss Human Factor Internationals (HFIs) recommendations for Text Integration Utility (TIU) Templates Become.
Chapter 12© copyright Janson Industries Java Server Faces ▮ Explain the JSF framework ▮ SDO (service data objects) ▮ Facelets ▮ Pagecode classes.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Forms Manager. What is Forms Manager? Forms Manager is a completely new online form creation and form data management tool.
Adxstudio Portals Training
Complete Ordering System for Promotional Literature and Samples Quick Reference and Training Guide.
Struts2 Validation using XML Approach. May 12, 2011 Need For Validation Validation can be defined as the assessment of an action so as to ensure that.
Chapter 29. Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-2 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML.
9 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Scheduling and Bursting Reports.
Tutorial 6 Creating a Web Form
Introduction to Computer CC111 Week 13 More on HTML 1.
17 Copyright © 2006, Oracle. All rights reserved. Information Publisher.
Informatics Computer School CS114 Web Publishing HTML Lesson 4.
Simple PHP Web Applications Server Environment
Web Systems Development (CSC-215)
Unit 2 – Webpage Creation
Presentation transcript:

© MIT 2000 Building Web Applications With Webjects Michael D. Barker The MIT Educational Media Creation Center September 2001

© MIT 2001 What's a Webject? n A set of servlets, allowing handling of several "standard" operations on data over the web by setting up the correct forms and configuration files. Notice that I did not say writing code – the servlets are deliberately designed to be generic, so that changes are made in the forms and configuration files, not the code. n At this point in time, there are five webject servlets: Capture, Lister, Displayer, Revise, and Deleter. n Webject as a one set of data.

© MIT 2001 Capture HTML Form Capture Servlet Webject List Capture is used to collect information from a web form for ONE webject. Often, the web form is just a simple html page, with form action posting to capture.

© MIT 2001 Lister HTML Form Lister Servlet Webject List Lister generates a web form displaying information from all the webjects in a list. HTMX Form

© MIT 2001 Displayer HTML Form Displayer Servlet Webject List Displayer generates a web form displaying information from a single webject. HTMX Form

© MIT 2001 Revise HTML Form Revise Servlet Webject List Revise is used to collect information from a web form to make changes for ONE webject. Often, the web form is generated by displayer.

© MIT 2001 Deleter HTML Form Deleter Servlet Webject List Deleter is used to remove one webject from the list. Often, it is invoked from a form generated by lister.

© MIT 2001 Typical Application n Collect information (using Capture) n Display a list of results (using Lister) n With edit buttons (using Displayer) that bring up forms whose submit changes the information (using Revise) n And delete buttons (that bring up a form and confirm, then invoke Deleter)

© MIT 2001 Parameters, XML files, and such n Every servlet has some parameters. n webject specification file n webject list file n Configuration in servlet zone properties file n page templates (htmx files)

© MIT 2001 Webject Specification File <parameter name="term" required="1" errorRequired="You must provide a term to be defined." /> <parameter name="definition" required="1" errorRequired="You must provide a definition for the term." /> Replace the parameter definitions with your data fields.

© MIT 2001 Possible Attributes Among the attributes that can be specified for a parameter are: n name="name" The name of the parameter. Required. n required="1" n errorRequired="message" n optional="1" (default) n ignored="1" (discard even if value present – good for discarding submit) n multiple="1" May have multiple values n default="value" n equals="name" use value of name n defaultequals="name" use value of name as default

© MIT 2001 Webject List File <iplist type="iprange" specfile="../conf/iplistspec.xml" docclass="edu.mit.emcc.webject.WebjectList" webjectclass="edu.mit.emcc.webject.Webject"> 1

© MIT 2001 HTMX File n Normal HTML plus (Displayer and Lister) n : the value of name n : CHECKED if non-blank value n : SELECTED if value (Lister only) n : number of items in list n... : repeat for all elements in list

© MIT 2001 Capture Parameters Minimum: n servlet.AddTicket.code=edu.mit.emcc.webject.Capture (alias) n servlet.AddTicket.initArgs=root=/development (root directory to prepend to all other file names) n servlet.AddTicket.initArgs=capturepage=ListTickets or servlet.Register.initArgs=capturepage=../lobby/register. html (html form, allows gets to servlet to redirect to form) n servlet.AddTicket.initArgs=webjectlist=data/ccoach/ac cessinfo/tickets.xml (the webject list)

© MIT 2001 Capture Parameters Additional: n servlet. SomeName.initArgs=templatedir= Directory where HTML templates are stored n servlet. SomeName.initArgs=successtemplate= for successful submissions (default: capturesuccess.htmx) n servlet. SomeName.initArgs=errortemplate= for validation errors (captureerror.htmx) n servlet. SomeName.initArgs=duplicatetemplate= for duplicate keys (captureduplicate.htmx) n There is also a set of parameters to generate – read the code for details (list follows)

© MIT 2001 Capture Parameters ( ) n servlet.SomeName.initArgs=mailserver=(address) n servlet.SomeName.initArgs=partial template=(filename) n servlet.SomeName.initArgs=partialto=(address) n servlet.SomeName.initArgs=partialsubject=(subject) n servlet.SomeName.initArgs=partialfrom=(address) n servlet.SomeName.initArgs=complete template=(filename) n servlet.SomeName.initArgs=completeto=(address) n servlet.SomeName.initArgs=completesubject=(subject) n servlet.SomeName.initArgs=completefrom=(address)

© MIT 2001 Lister Parameters Minimal n servlet.SomeName.code=edu.mit.emcc.webject.Lister (alias) n servlet. SomeName.initArgs=projectroot= (root of files) n servlet. SomeName.initArgs=webjectlist= (data list) n servlet. SomeName.initArgs=templatedir= (where are the templates)

© MIT 2001 Lister Parameters Optional n servlet. SomeName.initArgs=listtemplate= Defaults to listtemplate.htmx n servlet. SomeName.initArgs=mimetype= Defaults to text/html n servlet. SomeName.initArgs=sortby= Defaults to date n servlet. SomeName.initArgs=daysback= How many days back to include (defaults to all) Often entered in url (servlet name?daysback=5 for example)

© MIT 2001 Displayer Parameters Minimal n servlet.SomeName.code=edu.mit.emcc.webject.Displayer (alias) n servlet.SoName.initArgs=projectroot= (root for files) n servlet.SoName.initArgs=webjectlist= (data list) n servlet.SoName.initArgs=templatedir=

© MIT 2001 Displayer Parameters Optional n servlet.SoName.initArgs=webjecttemplate= Defaults to webjecttemplate.htmx n servlet.SoName.initArgs=notfoundtemplate= Defaults to notfoundtemplate.htmx n servlet.SoName.initArgs=idsource= How to get id of webject. Defaults to parameter (ID=xxx). Also accepts auth (look up user in webject list) and username (a username parameter will be supplied)

© MIT 2001 Revise Parameters Minimal n servlet.SomeName.code=edu.mit.emcc.webject.Revise (alias) n servlet.SoName.initArgs=projectroot= n servlet. SoName.initArgs=editpage= n servlet. SoName.initArgs=webjectlist= n servlet. SoName.initArgs=templatedir=

© MIT 2001 Revise Parameters Optional n servlet. SoName.initArgs=successtemplate= Defaults to revisesucess.htmx n servlet. SoName.initArgs=errortemplate= Defaults to reviseerror.htmx

© MIT 2001 Deleter Parameters Minimal n servlet.SomeName.code=edu.mit.emcc.webject.Deleter (alias) n servlet.SoName.initArgs=projectroot= n servlet.SoName.initArgs=webjectlist= n servlet.SoName.initArgs=templatedir= Runtime n SomeName?ID=xxxxx Or SomeName?id=xxxxxx

© MIT 2001 Deleter Parameters Optional n servlet. SoName.initArgs=deletedtemplate= Defaults to deletedtemplate.htmx

© MIT 2001 Likely Future Additions to the Webject Library n "archive" – put a class of webjects into another file and remove from the "active" file n Conversion to use mySQL, Oracle, or other database

© MIT 2001 For Additional Information n Brian Bermack's original documentation

© MIT 2001 You Can Reach Us... n Michael Barker –617/ n EMCC website: