可以直接用啊
b.jsp
<%!
public void GetEP(Vector items,int orgid) throws Exception {
...
}%>a.jsp
<%@ include file="function.jsp"%>
<%GetEP(items,orgid);%>

解决方案 »

  1.   

    <%@include file= "xxx.jsp"%> ------------------------------------------------------
               我们还年轻牛奶会有的奶牛也会有的 
                 可天天在 csdn 混这些会有吗 ??
      

  2.   

    可以直接用啊
    b.jsp
    <%!
    public void GetEP(Vector items,int orgid) throws Exception {
    ...
    }%>a.jsp
    <%@ include file="function.jsp"%>
    <%GetEP(items,orgid);%>
      

  3.   

    直接调用,就像在一个文件中声明的一样,因为<jsp:include 在编译时会将b.jsp插入到a.jsp中