File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes ActionForm (Context Object Or Command pattern?) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "ActionForm (Context Object Or Command pattern?)" Watch "ActionForm (Context Object Or Command pattern?)" New topic

ActionForm (Context Object Or Command pattern?)

Ajaz A

Joined: Jan 15, 2007
Posts: 21
Hi ...!

Am quite confused since last few days about Context object pattern.

My question is "Is ActionForm class in Struts an implementation of Command pattern or Context Object pattern? "

Action classes is an implementation of Command pattern as what I understand. Then ActionForm class implements which pattern?

Does Command object encapsulates the web user HTTPRequest information or do I need to show a seperate class called "Form" which acts as a placeholder for user request information?

Need help from you guys. I know lot of questions, one after another. Appreciate your help.

Thanks & Regards,

SCJP (310-035) 84% | SCEA 91%
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
It's a Context Object.

Which "command" that cannot be executed?
[ March 10, 2008: Message edited by: Kengkaj Sathianpantarit ]

SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
I agree. Here's the link:
subject: ActionForm (Context Object Or Command pattern?)
It's not a secret anymore!