In which pattern does all the action classes in the struts are organized

Please post the answer

Showing Answers 1 - 27 of 27 Answers

jitendra lovekar

  • Nov 4th, 2005
 

All the action classes the design pattern used is the Command Design Pattern.

  Was this answer useful?  Yes

challu

  • Nov 8th, 2005
 

mvc design pattern

  Was this answer useful?  Yes

sridhar kalluru

  • Nov 10th, 2005
 

the action class are in combination Front Controller pattern and command design pattern and Struts in MVC2 pattern

  Was this answer useful?  Yes

vijay

  • Nov 14th, 2005
 

Hi,

I  think singleton patteren,becasue only one instance of action calss is available for any no. of cleint requests.This is taken care by Multi threading..

Please comment on this..

Thanks

Vijay

  Was this answer useful?  Yes

pardhu

  • Nov 14th, 2005
 

   In which pattern does all the action classes in the struts are organized
Answer: MODEL VIEW CONTROLLER DESIGN PATTERN

  Was this answer useful?  Yes

Anupama.A

  • Nov 16th, 2005
 

Hi,

Action class overrides the excecute() method.Acts as a bridge between user invoked URI and a business method(command pattern).Its a part of Controller, not the model.

Thanks

Anupama

  Was this answer useful?  Yes

kalyan

  • Nov 17th, 2005
 

Hi,

Struts design pattern is MVC(Model-View-Controller)

View - Jsps,Custom Tags, etc.,

Model - Simaple Java Bean (In Struts its Form Bean)

Controller - Servlets(Action Calsses)

  Was this answer useful?  Yes

saikrupan

  • Nov 18th, 2005
 

what is multi cast remote object

  Was this answer useful?  Yes

srinivas

  • Nov 18th, 2005
 

like front controller pattern all the action classes struts are organized

  Was this answer useful?  Yes

vnam

  • Dec 22nd, 2005
 

Please, to all who are answering MVC, it is not a "Design Pattern",it is framework, the Command Pattern is defined as,

                  Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.

looks more closer to Action in struts

  Was this answer useful?  Yes

roshan

  • Dec 23rd, 2005
 

MVC Pattern

  Was this answer useful?  Yes

Aditya Mishra

  • Jan 6th, 2006
 

Struts framework is implementation of MVC architecture.The way action classes are getting accessed is an example of application controller.In this pattern pre and post processing of request gives you the appropriate results.

 

Remember Action class is an adapter between the contents of an incoming HTTP request and the corresponding business logic that should be executed to process this request. The controller will select an appropriate Action for each request, create an instance (if necessary), and call the execute method.

Aditya

  Was this answer useful?  Yes

Rakesh Parashar

  • Jan 19th, 2006
 

All Action classes are organised or defined within a MODEL layer
because this action classes contain buisness logic in form of
bean  those are invoked through Action Servlet(controller) to process
the reqest and create the response which in turn send back to view
layer (This is a MVC Pattern II )

Please comment..............

  Was this answer useful?  Yes

parindia

  • Mar 5th, 2006
 

An Action class is the controller of the application. it is used to written business logic. in this action class having one execute method. and this method return ActionForward so action class is businesslogic

  Was this answer useful?  Yes

Mr.Aketi

  • Mar 9th, 2006
 

Hi,

MVC pattern is used in struts. Here Model is bean , view is the JSP and controllers are servlets.so all the actions are controllers.

  Was this answer useful?  Yes

mckreddy2003

  • Mar 15th, 2006
 

can i have the exact ans for this question

  Was this answer useful?  Yes

virendra R

  • Mar 27th, 2006
 

Please do not waste the time of others by putting garbage data. Plz don't spoil the purpose of creating such a useful websites.

  Was this answer useful?  Yes

MP

  • May 25th, 2006
 

Please post the correct answers only if you know for sure.

  Was this answer useful?  Yes

Srinivas

  • Nov 9th, 2006
 

I accept ur answer these are the design patters used in struts

Action Servlet - Front Controller

Action Class    - Command pattern

Action Form   

  Was this answer useful?  Yes

Srinivas

  • Nov 9th, 2006
 

Action class in the struts frameworks follows Command design pattern

and the Action Servlets - Front Controller and ActionForms are ViewHelpers

  Was this answer useful?  Yes

siva

  • Jul 25th, 2007
 

Aditya, Exactly you are correct.

ActionServlet uses Command design pattern by calling the action classes

process() method of RequestProcessor uses template method desigb pattern by calling sequence of methods.

Action classes are used to transfer the HTTP Request to Model ( EJB,Plain java objects) and it uses Adaptor Design pattern.

Thank u all

ksr_bmengg @ yahoo . co . in

  Was this answer useful?  Yes

Struts controller uses the command design pattern and the action classes use
the adapter design pattern. The process() method of the RequestProcessor uses
the template method design pattern. Struts also implement the following J2EE
design patterns.


Service to Worker
Dispatcher View
Composite View (Struts Tiles)
Front Controller
View Helper


Synchronizer Token , few coders say that struts 1 doesn't implements command
pattern properly.


Saorabh Maheshwari

  • Jul 6th, 2012
 

Command Design Pattern.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions