This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
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 Soft Skills this week in the Jobs Discussion 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: 9321
    
  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