Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ActionForm (Context Object Or Command pattern?)

 
Ajaz A
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a Context Object.

Which "command" that cannot be executed?
[ March 10, 2008: Message edited by: Kengkaj Sathianpantarit ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic