| CGS4825.01.SummerA.2008 |
| May |
|---|
5: Syllabus, HTTP, HTML, HTML Forms
Syllabus
WinSCP
ocelot
Request format
GET / HTTP/1.1
user-agent
accept
accept-language
Response format
200 OK HTTP/1.1
Content-type
Content-length
MIME Type
Markup Language - HTML
Basic Tags, Standard Tags
HTML Validation
Layout versus Style
Word Wrap and White Space
Line Breaks and Paragraphs
Anchor
Absolute and relative
|
7: Form Data, JSPs, Request, Netbeans, Second Page
HTML Forms
input: text, submit
representing data
transmitting data
Web Application
file and dir structure
ocelot
netbeans
JSP
EL
Initalising form elements
as servlets
Handling a JSP
request process
servlet engine response
Netbeans project
Chapter 2
action
relative and absolute
hidden field
two pages
To Page 41
|
9: Tutorial Chapter 1
Create a Netbeans project.
Implement the FormInitialized JSP.
Be sure you can run the application, can enter data and the form elements will be initialized with the data that is in the query string.
|
12: Controller
Chapter 1
JSP
as servlets
Handling a JSP
request process
servlet engine response
Chapter 2
three pages
second form
controller
controller
confirm.jsp: same form; different button names
request.getParameter("processButton") != null
nested if-else
forward from controller to correct JSP
JSP controller
form action is always to Controller
JSP versus servlet
controller servlet
location: in packages
package.className
compilation: NetBeans
servlet access
web.xml
servlet def
servlet mapping
directory structure
classes
servlet engine for servlet
NetBeans project
not web app
folders correspond to web app
Source Packages -> classes
Library -> lib
Web Pages -> root
include source files in WAR
|
13: HW 1
Create Tomcat webapp on ocelot: username
Develop JSP locally that uses your input elements to do InitializedForm JSP.
Create index.jsp in web app that has link to hw1 JSP (rel).
Deploy to ocelot.
Create index.jsp in ROOT that has link to web app (rel)
|
14: Exam and Bean
Test
Start Example
Beans
Apache
conf structure
JkMount
Page 74
|
16: Tutorial Chapter 2
Tutorial
|
19: Member, Reorganised
Member Variables
Reorganised
|
20: HW 2
Apache
JkMount
Create index.html: rel link to Tomcat root.
Tomcat
ROOT index.jsp: link to Apache (abs)
username index.jsp link to HW2 controller
add Save page: save return to confirm
|
21: Exam, Logger, Hidden, Location, Logic
Exam
Apache: spare server, timeout, keep alive
break
Chapter 4: logger (did not mention adding JAR to lib)
Page 101
|
|
23: Tutorial Chapter 3
|
26: School Closed
School Closed - No class
|
27: HW 3
Apache
create project directory in docRoot.
limit access to you and me
change error document for this directory and subdirs (not root)
Tomcat
username index.jsp: link to HW3 controller
controller: default validation; make up good validations for the fields that you have. If I asked you to change your data, then implement change.
|
28: Chapter 4, Chapter 5
logger JAR in lib
Hidden
Location
Logic
Fill
Enhanced
Apache: srm.conf
Apache: error doc, icons, .htaccess
Page 121
|
30: Tutorial Chapter 4
Extended to May 31, due to lab closure.
|
| June |
|---|
| |
2: App Post, Persistent
Regular Expressions
POST
Persistent Annotations
Retrieving data
Saving data
Loop in JSP
|
3: HW 4
Apache
language negotiation
Tomcat
username index.jsp: link to HW4 controller
use your data and save page
|
4: Exam, Advanced HTML
Exam
Apache: access.conf
init hibernate
create param
(forgot to cover webapp listener)
Page 161
|
|
6: Tutorial Chapter 5
|
9: Advanced HTML, Form Elements
images, tables, lists, form elements.
|
10: HW 5
Apache
Tomcat
Persistent with your data; required validation with your validations (remove default)
modify enhanced
add numeric field: validate range
|
11: CSS
CSS
Page 212
|
13: Tutorial Chapter 6
Extended to 6/14, due to web site problem.
|
16: Login, Cookie,
Login
Cookie
|
17: HW 6
Apache
SSI
Tomcat
complex persistent and intialized.
radio, check, select, mult
|
18: Exam, Shopping Cart
Page 250
|