Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can someone explain the interceptor statement?

 
Jeshu Jayanthe
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's doing a parameter renaming: they're coming in as "username" and "pwd" but being set on action properties "loginid" and "password".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic