• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Should we need to show sub - Controller in Diagram?

 
Siddhartha G Baruah
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we do a single front controller pattern ,I assume, we would have various requests forwarded to many sub-controllers, right? But in Cade book, chapter 9, there is only one single front controller in the class diagram however in the sequence diagram they also include a BidController.

Should we just show the single front controller and in the write assumption about the url mappings to subcontroller/command object in a declarative setting and no need of sub-controllers OR we should show sub-controllers along with the single Frong Controller?

Thanks in advance.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
 
Luay Abdulraheem
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But we can show only sub-controllers ( I assume that you were talking about Backing Beans ), and not show the single Front controller ( Faces Servlet ) as it is part of the JSF Framwork, as long as we mention that in our assumptions, right ??
 
Siddhartha G Baruah
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your responses.

I am not talking about backing bean and I don't plan to use JSF. I was planning a front controller and one sub-controller(Command helper) per use case. But cade book was only showing controller in the class diagram. Now i think it is a good idea to include sub controller too.

What others think?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic