Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts 2 passing parameter to interceptor

 
shashi wagh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9265
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic