180 likes | 291 Views
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>
E N D
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>
The following are common XHTML entities to use in your forms: • <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
<input type=“password” name=“thePassWord” size=“10”/> • <label>The LABEL element associates a label with a form control. • </label> • Note • • Other entities for xhtml are available
If the checkbox for Jane is “checked,” the value for the variable “checkChoice” will be Jane <label>Jane</label> <input type="checkbox" name="checkChoice" value="Jane" checked="checked"/><br/><br/>
<!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>
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
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
Program Changes • Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" ); • connection = DriverManager.getConnection("jdbc:odbc:customer",“id",“password");
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.
Presentation Guidelines • Objectives • Preparation • Delivery • Make presentation interesting!
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.
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
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.
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.
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.
Keep to the time allowed. • As a rule of thumb, allow 2 minutes for each slide
At the end of your presentation ask if there are any questions • Don't run over!Ever!