Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Assignment 1 (1.5h) - Servlet Programming
- Write an application which includes a HTML page (WelcomeServlet.html) and a servlet (not use JSP). Detailed requirements/constraints are as below:
- 1. HTML page allow user to input his/her first name, then click Submit button to get the welcome message.
- 2. The welcome message (Hello + entered-first-name) would be generated on the servlet
- 3. The first name that user inputs must not be shown on URL when requesting the servlet
- 4. If the user doesn’t input his correct first-name (which must have at least one non-blank letter), the servlet would redirect him back to the HTML page.
- 5. The servlet doesn’t accept from external page other than the defined HTML page. If the request doesn’t come from the HTML page, a warning message would be shown saying that the user are not allow to access the page this way.
- Assignment 2 (1.5h) – Use-bean, DB connectivity, session tracking, and exception handling with JSP
- Write a JSP application (not use Servlet) to allow the user to add or update his/her profile data to the trainees list of the application, details as described below:
- - On entering the application, the user is asked to input his/her account, first-name, last-name, email. Those must not be empty.
- - When valid data are inputted, and the Submit button is clicked, the user would be redirected to the trainees list page which would show the guests who are accessed the application.
- - From the guests list page:
- o Besides seeing the guests list, user can see the entered information (from the first page) for his/her validation.
- o The user can choose to go back to input page for updating entered information or save the entered information into the database.
- o When user choose the saving option, the user’s profile information would be added or updated into the database. The update occurs only in the case his/her account exists already.
- - Any input data validation or application exception must be handled. Warning and error messages must be shown to the user.
- Technical constraints:
- - During adding progress (in a active session), store temporary data in the HTTP session
- Assignment 3 (1h) –Servlet and JSP Mixing Model
- Same as Assignment2, but you need to use JSP and Servlet at the same time. JSP must be used to define the user-interface of the application, and servlet must conduct business logic and database processing.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement