I'm trying to figure out how to display image loading in the sequence diagram. I have to do this as in my assignment, important business logic is being executed for this step.
(1) The only way I see that this can be done is that showing requests from the browser; having the browser as an actor in the sequence diagram. The browser makes a HTTP GET request for the JSP, and then makes an additional GET request for the image.
This would be a deviation from Cade's book where JSPs are shown to call the Controller (without showing browser involvement). Although I have no problem deviating from the examples, I want to be sure I am doing the right thing.
(2) Other idea would be to show something like this: menu.jsp calling Controller, Controller calls/renders viewItem.jsp, viewItem.jsp calls Controller.getImage(), getImage() returns the JPEG file.