Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does Struts uses Front Controller

 
Schandha Ravi
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64633
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
 
Schandha Ravi
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear. I actually got this doubt, after going through your Front Man
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64633
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Curious: why would that raise doubts? A front controller is frequently an important part of a good MVC architecture.
 
Lok Manick
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic