wood burning stoves*
The moose likes Struts and the fly likes Can someone explain the interceptor statement? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
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://aspose.com/file-tools
 
subject: Can someone explain the interceptor statement?
 
Similar Threads
Implementing Struts 2 Roles Interceptor
Is this the right way to implement user permission in struts 2 ?
Struts2 - execAndWait Interceptor
ModelDriver Interceptor + not getting my object
Struts 2 file upload tag type allowed error