The standard way in a JSP is to use a useBean tag with your class called 'MyBean"
<jsp:useBean id="MyValidatorBean" class="appl.personnel.MyValidatorBean" scope="request />
Then use the function as follows:
<%=myValidatorBean.validate()%>
((assuming validate() function returns a string))">