You are on page 1of 6

1) Todo:

- Download sample doc and code, read carefully,


start NetBeans

Test prep
- Before
- Get your basics right
- During
- Finish reading the instructions
- Think and plan before you code
- Read the included Java Documentation
- Code carefully - do it once, do it well
- Watch your time, continuously prioritize and
adapt
- Timing and architecture matters
- When you code, think of a few steps ahead
- When you code matters as well
- After
- Review your performance
- Timing
- Basics
- Comprehension
-…

(15 mins - 7.45pm)

2) Model-View-Controller paradigm
- With reference to the sample, describe
interaction
- How are things structured?
- How do the various layers interact?

(5 mins - 7.50pm)

3) Form - JSP interaction


- How do they interact?
- Form and fields require?
-
-
-
- JSP side requires?
-
-
- [Exercise - 10min] Get and print form input +
error checking - null, empty values

(15 mins - 8.05pm)

4) Calling the UserDataManager


- How does this relate to the MVC structure?
- (Look at documentation) How do you start?
What to call? Where in the world is the
documentation?
- What to import? How to import?
- What are
<%! <%@ <%= <%
<%--
- What to do once you're authenticated?

(15 mins - 8.20pm)

5) Including jsp files - "protecting" pages


- How does this work? What to check for?
Where to check from? What to do with the info?

- What to do with the page now?

6) Displaying username

(10 mins - 8.30pm)

7) Improving authenticate.jsp
- logging errors, displaying them over login.jsp
- How would you do this?
- How does login.jsp retrieve it?

(5 mins - 8.35pm)

8) Logout
-

(5 mins - 8.40pm)

9) Displaying movies
- connect to datamanager
- retrieving data, looping through data
- who has trouble with html and jsp printing?
out.print("<tr>" + currentMovie …
when do you use <%= instead ?
- what does s/n correctly starting from 1 mean?
How to do it?

(5 mins - 8.45pm)

10) Displaying dropdown list of movies


- is this another form?
- Revise - how do html forms interact with jsp forms
What methods to call from JSP side? See
documentation
What kind of values does the method need?
- Emphasize alternating between inline and jsp
printing
- Be prepared for other HTML form types
What's the big difference?

- JSP side - what to do?


- Error checking - ParseInt & Exception handling
- Protect
- Why call it?
- What do you get when you call it?
- How do you use the information that you
have?

(15 mins - 9.00pm)

11) Remove movie


- How is this done?
- Note on printing jsp with html
- JSP side - how do you get the variable?

(5 mins - 9.05pm)

- DIY - addmovie.jsp
12) Setting up a servlet
- Where should your html files be?
- Where should your classes be?
- Show file directory - clear confusion that
webpages are not under web-inf
- Why does the project automatically go to
mymovies.jsp

- which file to modify? where is it? how to


modify?

(10 mins - 9.15pm)

Finish up, questions

You might also like