File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Command Java Pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Command Java Pattern " Watch "Command Java Pattern " New topic

Command Java Pattern

Sachin Telang

Joined: Nov 02, 2007
Posts: 19

Can anyone give me good example of command pattern to understand concept of it. What is the use of command pattern? When to use it? Benefits.

Thanks<br />Sachin Telang<br />IBM Websphere Portal Application Developer Certified, Exam -399.
Sun Certified Java Programmer 1.5
E Lievaart

Joined: Jul 06, 2008
Posts: 28
Have you checked the wikipedia page?
Manish Shah

Joined: Jun 09, 2002
Posts: 22
If you have worked on struts then you must have come across LookUpDispatchAction. This is an example of command pattern where a form having multiple command buttons will invoke only a single action & based on command parameter it will invoke the particular method.

subject: Command Java Pattern
Similar Threads
what design Pattern to use for this problem
which pattern to use
HashMap with umm...method invocations?
Pattern to replace switch case with different funtionality in the case block
Lots of Query Strings: Best Approach