my dog learned polymorphism*
The moose likes Struts and the fly likes struts 2 passing parameter to interceptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 2 passing parameter to interceptor" Watch "struts 2 passing parameter to interceptor" New topic
Author

struts 2 passing parameter to interceptor

shashi wagh
Ranch Hand

Joined: Oct 30, 2008
Posts: 38
In my struts 2 application I have a LoginInterceptor
I want to pass some parameter through the struts.xml file
How can I pass the parameter to the interceptor.
In other words I want the parameter which I send to the action from struts.xml

e.g.


I want menuId in interception which I have configure for this action.

How do I get the value In interceptor.

I have already try for getter setter for menuId in interceptor.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8839
    
    7

Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts 2 passing parameter to interceptor
 
Similar Threads
struts 2 passing parameter to interceptor
Struts 2 addActionError problem
how to access the <param> in jsp which are set from struts.xml
Help needed to use the scope interceptor for a wizard
Problem With Execute and Wait Interceptor