You can't use any instance methods of that class. You can statically import static public members of a class and call them as if they were private static members of your class. You cannot use instance members of another class inside your class, except by inheritance.
You can invoke the valueOf and format methods from inside your class, but the instance methods of
String can only be invoked on a String object. That is what you can do in Java.
No idea about JSP: I shall move you to the JSP forum where that sort of question is usually discussed.