File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 229
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: 8843

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
why can't we instantiate abstract class
Why do we need ActionForm ?
Core Java Query & Struts Query