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.
添加回答
舉報