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

How desc FontController and Dispatcher in component diagram?

 
Juee Doo
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The road is all request is forward to ForntController servlet and then it call Dispatcher to call the ActionServlet.

In my opinion the dependency relationship from jsp should point to the action servlet that it calls. but it doesn't show up the Controller's function.


 
Scott Soo
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Juee Doo wrote:The road is all request is forward to ForntController servlet and then it call Dispatcher to call the ActionServlet.

In my opinion the dependency relationship from jsp should point to the action servlet that it calls. but it doesn't show up the Controller's function.




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!!
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just draw it, don't let anything limit your imagination.

You just draw the right things.
 
Juee Doo
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic