Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP in the class diagram

 
emanuel petre
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I would like to hear your opinion about having the JSP pages displayed in the class diagram.
At least this is done in the new edition of Mark Cade's book.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JSP is a view and not a class. It is a component. Do you mean it was displayed in the component diagram ?

Can you draw an example of what you saw just to make sure we are on the same page ?
 
emanuel petre
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bala.

I suppose you didn't see the book yet. Indeed, the JSP pages are designed in the class diagram also. There are dpendency arrows pointing from the pages to the Controller. For me was a bit strange to see this design. Well, the pages have associated servlet classes in the back, we all now. But I don't have a proper explanation for those JSPs there.
 
emanuel petre
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bala.

I suppose you didn't see the book yet. Indeed, the JSP pages are designed in the class diagram also. There are dependency arrows pointing from the pages to the Controller. For me was a bit strange to see this design. Well, the pages have associated servlet classes in the back, we all now. But I don't have a proper explanation for those JSPs there.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the first edition of the book. Can you give me the page number where this diagram is depicted ? I can check the limited preview version to see if the picture is available
 
emanuel petre
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Page 172, at least for the PDF format.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The limited preview does not include that page number

Can you draw an equivalent diagram and post here, if it is not too much work ? I am not sure if posting a screenshot of the image is within copyright terms
 
Riyaz Enayath
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the objective of showing jsp pages in class diagram to bring the context view of components at high level.

Regards,
Riyaz
Class_Diagram.jpg
[Thumbnail for Class_Diagram.jpg]
Class Diagram with Jsp pages
 
Dmitri Ericsson
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seemed strange for me too, but Humphrey Sheil is an author of some assignments and one of the assessors, so I think it would be reasonable to put JSPs where he thinks it is appropriate
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so I think it would be reasonable to put JSPs where he thinks it is appropriate


On the other hand we take the SCEA to learn how to design solutions and not to align our thinking with Humphrey's. I would refrain from including JSP's in a class diagram unless I knew the reason
 
Marco Elb
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I read the book too and it first confused me totally. Because of the usage of component and class diagram. It took me 1 day to understand what sun's opinion of class and component diagram is. In my assignment is mentioned that the components are jsps, patterns, managers, controllers or ejbs. For me thats a totally different view on comonent diagram than discribed in the new study guide. I decided to ignore the study guide. For me the view in the study guide is closer to my own opinion on component diagrams but the view is not the same what the assignment expects (hopefully). For me the new book aims on jee 6 or new assignments or newer jee 5 assignments. I think my assignment is an older jee 5 assignment (even hopefully).

Regards,
Marco
 
emanuel petre
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I consider that the class diagram is not the proper place for the JSPs. It should deal only with Java classes, ideally with the classes made by us and not the one provided by JSF, JDBC and other frameworks/technologies. It is ok to design a controller if it is part of an internal framework (developed by us). But if we choose to use Struts or JSF, for instance, why should we add the controller in our class diagram? We just add information that normally already exists in another place -let's say the documentation for these frameworks. The same, we don't need to draw the class Connection just to show the communication with the database trough JDBC. HTML, JSP pages in my opinion are resources that have their own place inside a component or interaction diagram. Or in an overview diagram describing the MVC architectural pattern. But not in the class diagram.

Regards,

Emanuel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic