aspose file tools*
The moose likes Struts and the fly likes Why ActionForm is class not interface? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Why ActionForm is class not interface?" Watch "Why ActionForm is class not interface?" New topic

Why ActionForm is class not interface?

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 227
Hi all,

Can somebody tell me why ActionForm is a class not an interface?

I could have made it an interface and the corresponding implementing class and can use that.

Thanks & regards,


Thanks in Advance,
Joe Ess

Joined: Oct 29, 2001
Posts: 8705

I can only speculate at the intentions of the developers (you could always search the developer mailing lists) but what jumps out at me is that it declares instance variables and methods that do things. One can't do that with an interface.
[ May 28, 2008: Message edited by: Joe Ess ]

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Why ActionForm is class not interface?
Similar Threads
Core Java Query & Struts Query
why can't we instantiate abstract class
Why do we need ActionForm ?