I'm want to use an api for encoding in my component's jsp and in my servlet which consist some backend logic. i have added dependency in my core,ui,parent's pom file. i'm able to import the class in the servlet and other java classes. but importing same class in component jsp is giving error only a type can be imported. i have tried giving package name in exported-packages and made other possible changes. any help?