Meaningless Drivel is fun!*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "ActionForm (Context Object Or Command pattern?)" Watch "ActionForm (Context Object Or Command pattern?)" New topic
Author

ActionForm (Context Object Or Command pattern?)

Ajaz A
Greenhorn

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,
Ajaz


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: http://aspose.com/file-tools
 
subject: ActionForm (Context Object Or Command pattern?)
 
Similar Threads
Can EJBActions be used for application client
Service to Worker misprint on corej2eepatterns.com?
Problem applying factory method pattern
Spring form question.
Command & Context Object pattern