Development Steps (CRUD for Restaurants)
1. Render Index Page
Task: Create landing page with navigation to restaurant list
- Link: For List restaurants
- URL:
http://host:port/ctx_path/
- Method:
GET
- Payload: none
- Response: render index page with a link to list restaurants
2. List All Restaurants
Task: Render List of restaurants
- URL:
http://host:port/ctx_path/restaurants/list
- Method:
GET
- Payload: none
- Response: render restaurant list (list.jsp)
3. Render Update & Delete Links/Buttons in list.jsp
Hint: Use <c:url>
tags for proper URL generation
4. Soft Delete Specific Restaurant
Why soft delete?
- Maintains data integrity
- Allows recovery of accidentally deleted records