forms and presentations gayle j yaverbaum infsy 547

18
Forms and Presentations Gayle J Yaverbaum INFSY 547

Upload: ruby-floyd

Post on 27-Dec-2015

218 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Forms and Presentations Gayle J Yaverbaum INFSY 547

Forms and PresentationsGayle J YaverbaumINFSY 547

Page 2: Forms and Presentations Gayle J Yaverbaum INFSY 547

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Insert Customer</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><?xml version="1.0" encoding="iso-8859-1"?><form method = "post" action = "servlet/Infsy547CustomerLab">

<label>Account Number</label><input name="accountNumber" type="text“/><br/><br/><label>Customer Name</label><input name="Name" type="text“/><br/><label>Customer Address</label><input name="Address" type="text“/><br/><label>Customer City</label><input name="City" type="text“/><br/><label>Customer State</label><input name="State" type="text“/><br/><br/><input name="Save" type="submit" value="Save“/>

</form></body></html>

Page 3: Forms and Presentations Gayle J Yaverbaum INFSY 547

The following are common XHTML entities to use in your forms:

1. <form>………….</form>

All components of the form appear within these tags

2. <input>………………………. </input>

a. types of input: text, submit, reset, password, button, radio button and checkbox

b. controls

c. Require a name attribute (except submit and reset)

d. A size attribute limits the size of the text box

Page 4: Forms and Presentations Gayle J Yaverbaum INFSY 547

1. <input type=“password” name=“thePassWord” size=“10”/>

2. <label>The LABEL element associates a label with a form control. </label>

a. Note 1) &nbsp;&nbsp;2) Other entities for xhtml are available

Page 5: Forms and Presentations Gayle J Yaverbaum INFSY 547

If the checkbox for Jane is “checked,” the valuefor the variable “checkChoice” will be Jane

<label>Jane</label><input type="checkbox" name="checkChoice"

value="Jane" checked="checked"/><br/><br/>

Page 6: Forms and Presentations Gayle J Yaverbaum INFSY 547

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Insert Customer</title> <link rel="stylesheet" type="text/css" href="names.css"> </link> </head>

• • • •

Page 7: Forms and Presentations Gayle J Yaverbaum INFSY 547

Finally

• Make use of all xhtml tags• Make use of style sheets• Note that the .html file will need to be within the TomCat structure

Page 8: Forms and Presentations Gayle J Yaverbaum INFSY 547

Alternate Method to Connect to Oracle• Start• Administrative tools• Data Source (ODBC)• System DSN• Add a Bridge

• Microsoft ODBC for Oracle• database name• user id• CLDB

Page 9: Forms and Presentations Gayle J Yaverbaum INFSY 547

Program Changes

• Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );

• connection = DriverManager.getConnection("jdbc:odbc:customer",“id",“password");

Page 10: Forms and Presentations Gayle J Yaverbaum INFSY 547

JDBC

• DriverManager Class• Class manages JDBC drivers and provides uniform interface

for establishing connections to databases• Load the driver by calling : Class.forName(driverClassName);

Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver”);

• If the driver can’t be loaded, a ClassNotFoundException is thrown.

Page 11: Forms and Presentations Gayle J Yaverbaum INFSY 547

Presentation Guidelines

• Objectives• Preparation• Delivery• Make presentation interesting!

Page 12: Forms and Presentations Gayle J Yaverbaum INFSY 547

Objective(s)

• Consider:• What are the objectives? • What are the main points you want to make?

• Have clear outcomes or results that you are want to achieve.• State up front what it is you are trying to achieve.

• If you don't say the one thing you need to say up front, it may never get heard.

Page 13: Forms and Presentations Gayle J Yaverbaum INFSY 547

Suggestions to structure a presentation• Conclusion/main point first! • Project Background

• Justifications, your product and development, and anything that shows how you dealt with issues

• Conclusion — Repeat the main point

Page 14: Forms and Presentations Gayle J Yaverbaum INFSY 547

Delivery

• Convince us!

• Discuss problems/issues.

• Audience interaction is important • Use creativity to make presentation meaningful

• PowerPoint is not a requirement

• Code is not typically appropriate

• Never read from a script.

Page 15: Forms and Presentations Gayle J Yaverbaum INFSY 547

• Move around. Don't stay behind a podium• Get into a place where you can see the screen as

well as the audience. • Stand to the left of the screen. People read left to

right. • They should start with you and move to the screen.

• Audiences want entertainment, enlightenment and education.

Page 16: Forms and Presentations Gayle J Yaverbaum INFSY 547

Make presentation interesting• Use graphics, handouts, etc.

• Use good color contrast• Use large enough fonts so that back row can

see your presentation• Present the material in a novel manner.

Page 17: Forms and Presentations Gayle J Yaverbaum INFSY 547

• Keep to the time allowed. • As a rule of thumb, allow 2 minutes for each

slide

Page 18: Forms and Presentations Gayle J Yaverbaum INFSY 547

• At the end of your presentation ask if there are any questions

• Don't run over! Ever!