Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Patterns used in Struts Frames

Reply
Thread Tools

Patterns used in Struts Frames

 
 
Surya
Guest
Posts: n/a
 
      06-14-2004
Hi,

Does anybody can tell me what are all the (Java/J2EE) patterns used in
Struts framework?

Thanks in advance.
Surya
 
Reply With Quote
 
 
 
 
Sam
Guest
Posts: n/a
 
      06-14-2004
(Surya) wrote in message news:<. com>...
> Hi,
>
> Does anybody can tell me what are all the (Java/J2EE) patterns used in
> Struts framework?
>
> Thanks in advance.
> Surya



I can't tell you all of them, but one of them is the Command Pattern.
IIRC, when a request of a certain type is received, a front end
servlet (Front Controller pattern) encapsulates the processing in some
a subcass of something like "ActionBean" which conforms to the Command
interface (e.g., implements an "execute" method). This execute method
is then called by something inside the framework, probably the
FrontController servlet itself.

IIRC, the ActionBean's execute method will invoke some kind of a
business service. The ActionBean itself might be an example of
ServiceToWorker, and the class on which it invokes the service may be
an example of a Business Delegate pattern. The Business Delegate in
turn invokes the actual service on a Stateless Session bean, in an
example of the Session Facade pattern.

That call might return some data to be displayed in a JSP page. The
data should be contained in a java class whose only purpose is to hold
information, which is a ValueObject.

The JSP page is template-based in Struts, so that would be an example
of CompositeView.
which.

There is also the whole underlying (overarching?) theme of MVC, where
the JSP Pages represent the View, the FrontController/Helper classes
and Session Beans the Control, and the Entity Beans the model.

Sam90
 
Reply With Quote
 
 
 
 
Surya
Guest
Posts: n/a
 
      06-18-2004
Sam,
Many many thanks for your valuable reply.
Cheers,
Surya..

(Sam) wrote in message news:< m>...
> (Surya) wrote in message news:<. com>...
> > Hi,
> >
> > Does anybody can tell me what are all the (Java/J2EE) patterns used in
> > Struts framework?
> >
> > Thanks in advance.
> > Surya

>
>
> I can't tell you all of them, but one of them is the Command Pattern.
> IIRC, when a request of a certain type is received, a front end
> servlet (Front Controller pattern) encapsulates the processing in some
> a subcass of something like "ActionBean" which conforms to the Command
> interface (e.g., implements an "execute" method). This execute method
> is then called by something inside the framework, probably the
> FrontController servlet itself.
>
> IIRC, the ActionBean's execute method will invoke some kind of a
> business service. The ActionBean itself might be an example of
> ServiceToWorker, and the class on which it invokes the service may be
> an example of a Business Delegate pattern. The Business Delegate in
> turn invokes the actual service on a Stateless Session bean, in an
> example of the Session Facade pattern.
>
> That call might return some data to be displayed in a JSP page. The
> data should be contained in a java class whose only purpose is to hold
> information, which is a ValueObject.
>
> The JSP page is template-based in Struts, so that would be an example
> of CompositeView.
> which.
>
> There is also the whole underlying (overarching?) theme of MVC, where
> the JSP Pages represent the View, the FrontController/Helper classes
> and Session Beans the Control, and the Entity Beans the model.
>
> Sam90

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JAVA/J2EE Design Patterns in Struts astrorail Java 2 05-14-2011 12:12 PM
where to find good patterns and sources of patterns (was Re: singletons) crichmon C++ 4 07-07-2004 10:02 PM
Tiers, Layers, Models and Design Patterns (Model-2 of Struts) Jan Brunia Java 1 02-10-2004 05:38 AM
From Frames to no frames? Powerslave2112 HTML 2 01-20-2004 10:30 PM
Struts or Patterns in ASP.NET PeteZ ASP .Net 3 06-30-2003 03:10 PM



Advertisments