File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Command Java Pattern

Sachin Telang
Greenhorn

Joined: Nov 02, 2007
Posts: 19
Hi,

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
Greenhorn

Joined: Jul 06, 2008
Posts: 28
Have you checked the wikipedia page?
http://en.wikipedia.org/wiki/Command_pattern
Manish Shah
Greenhorn

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.


SCBCD5, SCWCD, SCJP, MCP
 
 
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