Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Action class is not POJO object in Struts2 as tutorials say

 
Jaime Stuardo
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello....

I am following tutorials to start coding in Struts2.

In all of them, action classes are POJO objects, so that, it does not extend anything.

I am using NetBeans to code. When I start a Struts2 project, action class is like the following:



If I remove the extends, page throws an exception.

Why is that?

Regards.
Jaime
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaime Stuardo wrote:
If I remove the extends, page throws an exception.

Why is that?


I have no idea. Actions can be POJO's. I can see you getting a compile error because SUCCESS is inherited through ActionSupport. What exception are you getting?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic