This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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: 9312
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