You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Liang Li <Ll...@Cleanwise.com> on 2001/07/10 14:55:13 UTC

Can anyone tell me the relationship of Struts framework and Front Controller design pattern of J2EE?

Hi,
 
I find the url
http://java.sun.com/j2ee/blueprints/design_patterns/front_controller/index.h
tml
<http://java.sun.com/j2ee/blueprints/design_patterns/front_controller/index.
html>  describing the front controller design pattern. I think it has
relationship with the Struts Framework, but I'm not sure what's the
relationship.
 
Can anyone tell me the relationship between them? And what's the advantage
of struts?
 
Thanks in advance.
 
--Liang
 

Re: Can anyone tell me the relationship of Struts framework and FrontController design pattern of J2EE?

Posted by Ted Husted <hu...@apache.org>.
The Struts framework implements the Front Controller pattern as its
ActionServlet.

Using that vocabulary, the ActionMappings are the Dispatcher. 

The advantage of Struts is that the Front Controller, Dispatcher, and
several other J2EE patterns have already been implemented for you, and
are ready to use!

Our friend Dan Malks, et al, have developed the architectural patterns
based on real-life implementations, including, I imagine, what we have
been doing with Struts. 

My copy of "Core J2EE Patterns" just came yesterday, and I'm looking
forward to reading it in-depth.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/

> Liang Li wrote:
> 
> Hi,
> 
> I find the url
> http://java.sun.com/j2ee/blueprints/design_patterns/front_controller/index.html describing
> the front controller design pattern. I think it has relationship with
> the Struts Framework, but I'm not sure what's the relationship.
> 
> Can anyone tell me the relationship between them? And what's the
> advantage of struts?
> 
> Thanks in advance.
> 
> --Liang
>