aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 60048
    
  65

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: 60048
    
  65

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
 
Similar Threads
why struts framework?, lifecycle of the framework
How to display a page without the trailing .jsp
Authentication in JSF
Form Beans necessary?
using stateful and stateless session bean together, what happens?