File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

should be declared abstract?

 
John Davis
Ranch Hand
Posts: 189
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic