Skip to content

mjc-school/stage2-module2-task1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Servlets

Materials

Description:

An application has a starter page with 2 buttons: "Add User" and "Users". You need to create handlers for them. To achieve that create 2 servlets:

  • AddUserServlet
  • GetUsersServlet

Details

AddUserServlet should:

  1. be placed in com.example.servlet package
  2. have /add url
  3. should navigate to /add page
  4. when adding a new user should:
    • receive 2 params: firstName, lastName
    • save user in Warehouse
    • return request attribute "user"
    • navigate to /add page

GetUsersServlet should:

  1. be placed in com.example.servlet package
  2. have url /users
  3. receive users from Warehouse
  4. as a result should:
    • return request attribute "users"
    • navigate to /users page

Important note

It is important that you use JavaEE, not JakartaEE and Tomcat 9.x or lower.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages