Assignment 3
The Assignment
JStore - Browser Client actually references
two applications of NotesBean.java, sessionServlet.java and Bean Test which consists of testJStore.html and
JStoreView.jsp. Assignment 3 is to combine these two application, adding some additional features. The right side image below provides an
overview of the resulting Application Logic.
Software interactions in the bottom right vertical portion of the above diagram.
Details
- Sessions should be defined by a random Session Management String.
The version of sessionServlet.java in the .zip file below begins to implement this.
- Bean instantiation should be handled by the servlet rather than the new JStoreView.jsp. In particular, the database should be
locked while instantiating a requested Bean .
- Views should have a "Close Session" button
Source Files and References
- js_test.zip. This should run unpacked and as is in a webapp named js_test on
your off-campus "localhost." It also now contains a .sql script to load the java_store.
To move it to your hoare.cs.umsl.edu webapp:
- Link references to localhost:8080 in various JSP s need to be changed to hoare.cs.umsl.edu/servlet.
- The directory structure under js_test needs to be moved under j-<yourname>.
- getSimpleNotes.jsp
- sessionServlet.java- First Draft
- sessionServlet.java- Second Draft
- Session.java
- JStore - Browser Client
- Session Management.
- The Database table.
- In particular, The Java Server Page.
- Chapter 7 Sessions and Cookies.
- Some Notes.