The class needs to go onto the classpath of your application server.
There are a few ways to call a Java class from a JSP but the simplest is to add scriptlets to the JSP page which are java code contained within <% %> characters. e.g. <%= new java.util.Date() %>.
You can also define a bean with <jsp:useBean>. A third way is to define a jsp tag. And the fourth way is through some sort of action controler framework like jsf or struts. Just google for "jsp basics" to get some more detail.