File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 8997
    
    9

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


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts 2 passing parameter to interceptor