A friendly place for programming greenhorns!
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
Author
Can someone explain the interceptor statement?
Jeshu Jayanthe
Greenhorn
Joined: Aug 07, 2009
Posts: 1
posted
Aug 07, 2009 06:14:15
0
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
I like...
posted
Aug 07, 2009 13:00:44
0
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter