• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying how images are being loaded

 
Dumitru Postoronca
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

This question is related to JSP & Controller in class/sequence diagram question.

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.

Any thoughts on these options?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I favor option #2. Having the browser in a sequence diagram is highly irregular.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic