From the course: Software Design: From Requirements to Release

Unlock the full course today

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

Build code

Build code

- As I was drawing these sequence and clause diagrams that you saw in previous lesson, I was also coding which help me make sure that whatever I was thinking was also in implementable in code. I will now show you the code for search use case which starts when the user chooses search option from the homepage. The homepage is index.jsp but the link for search is in header.jsp. Here you can see that we have POC link in line 17 from the previous iteration which we no longer need. So I have commented it out. In the next line, you see that search link is pointing to search, which is actually the SearchController Servlet. All search-related java classes are now in a package near search inside com.hplussport.red30. In SearchController, we have just regular doGet and doPost methods. Both for running the request to search in inputs.jsp. Search Inputs.jsp is in a folder Search, inside jsp folder. This has one form in line 12, that has a…

Contents