This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interceptors

 
Krishnan Rathnakumar
Greenhorn
Posts: 5
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the request?
 
Ankit Garg
Sheriff
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic