aspose file tools
The moose likes Struts and the fly likes Can someone explain the interceptor statement? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Can someone explain the interceptor statement?" Watch "Can someone explain the interceptor statement?" New topic
Author

Can someone explain the interceptor statement?

Jeshu Jayanthe
Greenhorn

Joined: Aug 07, 2009
Posts: 1
Dear Friends,
I am new to Struts 2.0. Can someone please explain the below set of statements?

<action name="aliasing" class="demo.AliasAction">
<param name="aliases">
#{'username':'loginid','pwd':'password'}
</param>
<interceptor-ref name="alias" />
<interceptor-ref name="logger"/>
<interceptor-ref name="basicStack" />
<result name="success">/Success.jsp</result>
<result name="error">/Alias.jsp</result>
<result name="input">/Alias.jsp</result>
</action>


Thanks & Regards,
Jeshu
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It's doing a parameter renaming: they're coming in as "username" and "pwd" but being set on action properties "loginid" and "password".
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Can someone explain the interceptor statement?
 
Similar Threads
ModelDriver Interceptor + not getting my object
Is this the right way to implement user permission in struts 2 ?
Implementing Struts 2 Roles Interceptor
Struts2 - execAndWait Interceptor
Struts 2 file upload tag type allowed error