• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How desc FontController and Dispatcher in component diagram?

 
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Forget Steve. Look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic