File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Action class is not POJO object in Struts2 as tutorials say Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action class is not POJO object in Struts2 as tutorials say" Watch "Action class is not POJO object in Struts2 as tutorials say" New topic
Author

Action class is not POJO object in Struts2 as tutorials say

Jaime Stuardo
Greenhorn

Joined: Apr 05, 2013
Posts: 6
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

Joined: Oct 29, 2001
Posts: 8710
    
    6

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?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Action class is not POJO object in Struts2 as tutorials say
 
Similar Threads
Error in building an application using Struts2
Struts2 iterator
migration to Struts2
JSON Gridview is not working with struts2
Pagination through Struts2 Action Classes