From the course: Jakarta EE Servlets

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Challenge: Handling Servlet requests

Challenge: Handling Servlet requests - Jakarta EE Tutorial

From the course: Jakarta EE Servlets

Challenge: Handling Servlet requests

(upbeat music) - [Instructor] Now it's your turn to tackle a programming challenge that'll require you to work with the HTTP servlet request in the product servlet. In this challenge, H+ Sport is adding the ability to update an existing product that is found within the product catalog. They'll need your help to implement this capability in the product servlet. To complete the challenge, you'll need to add a new method to the product servlet that receives the updated product information from the client, and then performs the update on the associated product in the catalog. H+ Sport would like you to implement this logic in a way that allows the client to provide the data for the product update in either JSON or XML format with JSON being the default. To help with parsing the data the client provides, you'll find static utility methods on the Product class named from XML and from JSON that you can use to deserialize…

Contents