I have been stuck in quite awkward situation in my program.
The case is that... my project is having some A.jar file in classpath which packs many important utility classes..but this A.jar is quite old file and we cant replace this as we are not sure how and what importance it holds....
Now, i need the method request.setCharacterencoding() & response.setCharacterEncoding from ServletResponse I/F but this A.jar contains the old version of ServletResponse and due to which I am not getting the above two methods.. Now i have introduced new servlet-api.jar in classpath but still my project is taking the reference of servletResponse class from A.jar and not from new servlet-api.jar.
Can you guys, please suggest me a way to get the reference of new servletResponse from servlet-api.jar rather than A.jar
(P.s. : I can not remove/modify the A.jar)
Thanks...