This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Does Struts uses Front Controller Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Does Struts uses Front Controller " Watch "Does Struts uses Front Controller " New topic
Author

Does Struts uses Front Controller

Schandha Ravi
Ranch Hand

Joined: Oct 20, 2007
Posts: 167
Hi All,

I was told and infact believed that Struts is based on MVC Framework or pattern. But I happened to see Front Controller and see lot of similarities between the way Struts handle the HTTP requests and the way Front Controller handles.

My question is does Struts uses Front controller also? My question is very lame and I apologize for this question.


Thanks & Regards, SK
SCJP 5.0, DB2 - 800, DB2 - 803, SCDJWS (On the way)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

Yes.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Schandha Ravi
Ranch Hand

Joined: Oct 20, 2007
Posts: 167
Thanks Bear. I actually got this doubt, after going through your Front Man
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

Curious: why would that raise doubts? A front controller is frequently an important part of a good MVC architecture.
Lok Manick
Ranch Hand

Joined: Jan 24, 2005
Posts: 71
Struts-config.xml acts as the front controller in the case of struts as all the requests must go thru it.
And the intercepting filter in struts are preprocessor.

Hope this helps


with regards,
Loks (SCJP, SCWCD)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does Struts uses Front Controller