Articles Tutorials Interview Questions & Answers Certifications Free Books & Sample Chapters Technical Discussions    Your Account | Advertise with us | Feedback
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  Log inLog in   RegisterRegister 

DelegatingActionProxy

 
Post new topic   Reply to topic     Forum Index -> Spring Framework
View previous topic :: View next topic  
Author Message
jonathan



Joined: 30 Oct 2007
Posts: 3

PostPosted: Tue Oct 30, 2007 4:59 am    Post subject: DelegatingActionProxy Reply with quote

What is the advantage of using DelegatingActionProxy and injecting action using a xml file...

I am having a project that usese following way to invoke action :
[code]<action
path="/doLogin"
type="org.springframework.web.struts.DelegatingAct ionProxy"
name="logonForm"
scope="request"
validate="false">
<forward name="success" path="home"/>
</action>
code]

Code snipet in struts-applicationContext.xml

[code]<bean name="/doLogin"
class="com.sqa.struts.action.LoginAction"singleton ="false">
</bean>[/code]
________
Motor Company


Last edited by jonathan on Sat Feb 12, 2011 8:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
markpostma



Joined: 30 Oct 2007
Posts: 9

PostPosted: Tue Oct 30, 2007 5:01 am    Post subject: Reply with quote

That way you Struts action are beans managed by Spring and you can inject stuff into them. If you don't you would have to pull everything from the context yourself instead of relying on Spring.

Of course letting spring manaing your beans also allows the use of AOP etc.

There is a chapter in the reference guide covering this.

Regards,
Mark
________
Genetically modified food
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Spring Framework All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group