Meaningless Drivel is fun!
The moose likes Struts and the fly likes regarding ActionForm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "regarding ActionForm " Watch "regarding ActionForm " New topic

regarding ActionForm

karthik mama
Ranch Hand

Joined: Aug 27, 2007
Posts: 34
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.

David Newton

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Apr 26, 2007
Posts: 249
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.

I agree. Here's the link:
subject: regarding ActionForm
It's not a secret anymore!