*
The moose likes Struts and the fly likes should be declared abstract? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "should be declared abstract?" Watch "should be declared abstract?" New topic
Author

should be declared abstract?

John Davis
Ranch Hand

Joined: Nov 02, 2000
Posts: 189
I downloaded this struts code and verified it works in my Tomcat 5.5 installation. However, the following source is error-flagged by IntelliJ


The Ide (Idea) complains that GetMessagesAction should be declared abstract because "it does not define actionPerformed(ActionEvent) in ActionListener.

Whats going on here? If this is in error shouldn't the application have failed compilation?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
It looks like what may have happened is that intelliJ picked up the wrong Action class. Your Struts action class should extend org.apache.struts.action.Action, not javax.swing.Action.


Merrill
Consultant, Sima Solutions
 
Don't get me started about those stupid light bulbs.
 
subject: should be declared abstract?
 
Similar Threads
abstract method
another Questions.
abstract class / method
Abstract Methods
is this Ambiguous?