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

regarding ActionForm

 
karthik mama
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

can anyone please tell me where to put in my ActionForm class like will it be in the same directory as the Action classes?
please help me I'm new to struts.

Thanks
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can put it in whatever package you want--some people have a package for all their forms, some people have a package for each functional unit, some people do it yet other ways.
 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may put it in any package you may wish.... The only catch is that you need to specify the full package name and class name in the struts-config.xml so that an object of actionform can be initialized and returned to your action class at runtime.

Dawn.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic