wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts-2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts-2.0" Watch "Struts-2.0" New topic
Author

Struts-2.0

Madhav Penubala
Greenhorn

Joined: Sep 26, 2005
Posts: 6
Hi Friends!!

I have some doubts on Struts-2.0 framework.

(1) Implementation of Action Interface is optional, then execute() method in Action class(POJO or any) how it will work?

(2) Is ActionInvocation Class mandotory if we are not supposed to use Interceptors any more?

(3) Is ActionProxy called even from the FilterDispatcher if we are not using RMI or SOAP?

(4) Is a StackValue memory kind of thing or any class?

(5) Is OGNL can be put in Jsp to pull data from StackValue?


Can any of you please provide the info.....


Thanks in advance..,

Thanks & Regds,
Madhav
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

>> (1) Implementation of Action Interface is optional, then execute() method in Action class(POJO or any) how it will work?

Reflection? That said, I've found that I extend ActionSupport almost 100% of the time because of the additional functionality it provides.

>> (2) Is ActionInvocation Class mandotory if we are not supposed to use Interceptors any more?

I'm not sure what you mean by this.

>> (3) Is ActionProxy called even from the FilterDispatcher if we are not using RMI or SOAP?

Or this.

>> (4) Is a StackValue memory kind of thing or any class?

Or this. Any object can be put in the value stack.

>> (5) Is OGNL can be put in Jsp to pull data from StackValue?

OGNL is the EL used by the Struts 2 tags to access value stack data, although JSP EL can be used outside of the tags.

Dave
Madhav Penubala
Greenhorn

Joined: Sep 26, 2005
Posts: 6
Thank you very much Dave for your kind info!

according to (1), general action class which should contain execute() method and not imported any ActionSupport, how execute() works?

(3) Not using any RMI or SOAP, does FilterDispatcher delegates the control to the ActionProxy?

(4) Is StackValue Heap or Stack?


Once again thank you in advance Dave!

- Madhav
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

>> according to (1), general action class which should contain execute() method and not imported any ActionSupport, how execute() works?

The answer is still reflection.

>> (3) Not using any RMI or SOAP, does FilterDispatcher delegates the control to the ActionProxy?

I still don't understand what you're asking or why you're asking it. There's always an ActionProxy--as the comment you read says, that's what allows for other proxy types like RMI or SOAP.

>> (4) Is StackValue Heap or Stack?

It's a combination of a stack and a map: objects are pushed and popped, but it also contains named objects.

Dave
Madhav Penubala
Greenhorn

Joined: Sep 26, 2005
Posts: 6
Thank you very much Dave!
 
Don't get me started about those stupid light bulbs.
 
subject: Struts-2.0
 
Similar Threads
Trigger action on combo change
How to display dynamic resulset data using Struts 2.0
How to call a jsp page from another jsp page in struts
Annotation question for Struts 2 - Design and Programming
Action class LifeCycle