1. Εξέταση 2ης εργασίας
• Παρακαλώ οι παρακάτω να παραμείνουν την 2η ώρα για να
συζητήσουμε την εργασία τους
546(alkis), 593 (antonis), 917(thodoros), 935, 941,
959(sotiri), 989, 996(alexandros), 1502(evi), 1557
2. 3η εργασία
Μελετήστε το 5ο κεφάλαιο του βιβλίου Head First Servlets & JSP,
Second Edition, και προσπαθήστε τις ερωτήσεις της εξέτασης.
Χρησιμοποιήστε τον σύνδεσμο http://www.datadisk.co.uk/html_docs/
jsp/jsp_mvc_tutorial.htm για να υλοποιήσετε μια web application η
οποία θα μας βοηθάει να επιλέξουμε το είδος του καφέ που
επιθυμούμε.
Καταθέστε την εργασία σας πριν τις 08.00 της Δευτέρας 27
Οκτωβρίου συμπληρώνοντας την παρακάτω φόρμα.
5. Conversational state
• Web servers have no short-term memory. As soon as they close
connection to your session they forget you.
• Most of the time this is what you need
• Sometimes you do need to keep the conversation with the container
alive for awhile.
• Keep client specific state across multiple requests
6. Implement
• Use a stateful session enterprise javabean
• Use a database
• Use an HttpSession
16. Summary for get.Session()
I want a session for THIS client
A session that matches the session ID sent or
A new session
The session is with the client associated with the request