You need to use declaration syntax (<%! ... %>):
<%!
public String doSomething(String param) {
//
}
%>
<%
String test = doSomething("test");
%>
You need to use declaration syntax (<%! ... %>):
<%!
public String doSomething(String param) {
//
}
%>
<%
String test = doSomething("test");
%>