Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts-2.0

 
Madhav Penubala
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>> (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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>> 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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Dave!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic