3 回答
TA贡献1982条经验 获得超2个赞
您可以将值传递给 java 类,如下所示,
<jsp:useBean id="sample" scope="page" class="com.mellon.sample" /> // sample is java file name
//-------now pass parameter indnames to your sample java file here sample is the class name and function_name is the method name.
sample.function_name(indnames);
TA贡献1799条经验 获得超8个赞
好吧,我知道它是怎么做到的。在 zz 方法下的 dbhandler.java 页面中,我添加了:
Connection con = getConnection();
ArrayDescriptor arr= ArrayDescriptor.createDescriptor("ARRAY_COLLECTION",con);
//Here ARRAY_COLLECTION is my array type.
Array array= new ARRAY(arr,con,a);
//'a' is my String[] variable
Callable statement= con.prepareCall("{call zz1(?,?)}");
ps.setArray(1, array);
.
.
.
and so on.
添加回答
举报