2

I am making a web application with java and jsp and I need to draw the class diagram for the application, but since JSP files are not classes I think they are not supposed to be included in the class diagram, but in this thread it says that the JSP files are compiled as a subclass of HttpServlet and in the same thread some say yes and some say no, so should I include it in the class diagram? If so how should I include them?

marques
  • 55
  • 5
  • JSP files are *compiled* into classes, but the class names are machine generated (thus I would not diagram them). Further, you probably should not be using JSP files any more. There are many, better, front-end Java HTML templating tools (for example JSF). – Elliott Frisch Feb 11 '20 at 08:49
  • @ElliottFrisch I was told to use jsp files by the client.. and also how would I represent the views if I do not show the jsp files, I'm stuck on the part where I connect the controller to the views in the UML – marques Feb 11 '20 at 08:54
  • @marques you can do your design using the JSPs as views and the servlets as controllers. – Maurice Perry Feb 11 '20 at 08:55

0 Answers0