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

Interceptors

 
Krishnan Rathnakumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to get parameter values with in the interceptors.
i am using struts2, how can i get this values...
please anybody give a suggestion.

thanks...
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the request?
 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your intercept method gets a ActionInvocation object which has a getInvocationContext which returns ActionContext which has a getParameters method...
 
Krishnan Rathnakumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ankit Garg,

thanks for your reply.
if i use "invocation.getInvocationContext().getParameters()" i am getting my parameter values like "{SessionID=[Ljava.lang.String;@144752d}" but i am unable to get a exact value... how can i take this...
please help me..
 
Krishnan Rathnakumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all,
i got the answer by using request.getParameter(); it's working fine thanks for all

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic