I have a jsp file, in which I need to use to methods of class Base64. one method is present in java.util :
java.util.Base64.getEncoder().encodeToString().
and another method is present in
org.apache.commons.codec.binary package :
org.apache.commons.codec.binary.Base64.encodeBase64String()
so to achieve this I used fully classified names but still it is givng error.
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 59 in the jsp file: /ProcessDetails.jsp org.apache.commons.codec.binary.Base64 cannot be resolved to a type 56: String signature = java.util.Base64.getEncoder().encodeToString(sha256_HMAC.doFinal(data.getBytes())); 59: String paymentToken = org.apache.commons.codec.binary.Base64.encodeBase64String(sha256_HMAC.doFinal(data.getBytes()));