Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes Interceptors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Interceptors" Watch "Interceptors" New topic
Author

Interceptors

Krishnan Rathnakumar
Greenhorn

Joined: Mar 26, 2010
Posts: 5
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

Joined: Sep 29, 2008
Posts: 12617

Look at the request?
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

Your intercept method gets a ActionInvocation object which has a getInvocationContext which returns ActionContext which has a getParameters method...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Krishnan Rathnakumar
Greenhorn

Joined: Mar 26, 2010
Posts: 5
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

Joined: Mar 26, 2010
Posts: 5
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
 
subject: Interceptors