: Use the @WebServlet annotation or the web.xml file to map a URL pattern like /userProfile .
: Add private instance variables for user data (e.g., firstName , email ).
Add a new servlet or a new action to an existing one to process requests.