Hi,
I am not sure of your query. Are you using some kind of tool which generate the relationship for you? What do you mean when you mention "..doesn't show up the Controller function"? One thing for you to note. Depending on your design, if all request is going to the FrontController and dispatch to JSP, do you think it makes sense to have an arrow pointing from JSP to the servlet in the Component Diagram?
Additionally, since it is an application design, do you think it is necessary to show all components including the foundation classes (eg. ActionServlet) of the framework you use and the core foundation java classes in the Component Diagram?
Cheers!!
Dispatcher make a misconceive here, I want to use is Service to Worker
pattern. Business logic will be written in some Worker classess.
Like struts/WebWork. All request are forward to FrontController, and then FrontController will call a Worker to process the request.
Logically, a <<jsp>>XXXForm call a Worker component to process its request. So i want a relationship from <<jsp>>XXXForm to the Worker.
However, actually, the request is forward to FrontController and then to the Worker. And i think FrontController component is necessary to display in component diagram(My assignment notes out important Controller/Design Pattern should be included).
My query is: dependency relationship from jsp point to Worker component
a) 2 dependecy lines, one is from jsp to Worker, the other is FrontController to Woker.
b) 2 dependecy lines, one is from jsp to FrontController , the other is FrontController to Woker.
c) 3 dependecy lines, one is from jsp to FrontController , another is FrontController to Woker, and jsp to Woker. (a triangle map)
i am apt to choice a. but seems strange.