This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes controller Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "controller" Watch "controller" New topic
Author

controller

thomas wilson
Greenhorn

Joined: Sep 21, 2004
Posts: 24
If I am not mistaken, MVC pattern states that it's good to have only 1 servlet as the controller. Does Struts violate this? Thank you
George Franciscus
author
Ranch Hand

Joined: Jan 25, 2005
Posts: 32
Struts has just one Servlet - the ActionServlet. However, most of the heavy lifting is done by the RequestProcessor. You can read all about it at http://struts.apache.org/userGuide/introduction.html and http://struts.apache.org/userGuide/building_controller.html


George Franciscus<br />george.franciscus@nexcel.ca<br /><a href="http://www.nexcel.ca" target="_blank" rel="nofollow">http://www.nexcel.ca</a><br /><a href="http://www.manning.com/franciscus" target="_blank" rel="nofollow">http://www.manning.com/franciscus</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: controller
 
Similar Threads
WA #1.....word association
Struts Action class and Action Form
difference in patterns
MVC or Moderate pattern for GUI?
Design Pattern at Struts