This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Why ActionForm is class not interface?" Watch "Why ActionForm is class not interface?" New topic
Author

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,

Kousik


Thanks in Advance,
Kousik
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

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]
 
jQuery in Action, 2nd edition
 
subject: Why ActionForm is class not interface?
 
Similar Threads
ActionForm
why can't we instantiate abstract class
ActionFormBean
Why do we need ActionForm ?
Core Java Query & Struts Query