I have written a validation Interceptor, in which I am retrieving the parameters from parameterMap.
I am facing a problem when I am trying to fetch the value of params.get("searchValidationString"), it is returning Object, casting to String is giving Class cast exception
this check is returning false
this block is printing the reference instead of value.
I am unable to get the string value from the request parameter ,which I need in interceptor for comparison.
Joined: Jun 15, 2013
I got the problem, problem is with the piece of code following:-
Object SearchString = params.get("searchValidationString");
this code returns the String instead of String. Casting it to the String, then taking the  element solves the issue.
I am surprised to see that no one explains this in any interceptor example I have refered.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Unable to fetch Request Parameters in customized Interceptor