1.
在action中定義,list屬性(product為pojo) 2.
jsp頁面中:
<
s:iterator
value
="new int[3]"
status
="stat"
>
<
tr>
<
td><
s:textfield
name
="%"
/>
td>
<
td><
s:textfield
name
="%"
/>
td>
<
td><
s:textfield
name
="%"
/>
td>
tr>
s:iterator
>
其中productlist
為action的list屬性名,name,price,
dateofproduction
為product的屬性
3.定義屬性檔案(與action同一目錄),action名稱-converstion.properties,格式為:element_屬性名=product
DB2批量匯入匯出
一 匯出 1.先建乙個空的資料夾,比如data 2.定位到data目錄 3.匯出建表語句 db2look d 庫名 e z 使用者名稱 l o 檔名.sql 4.匯出資料 db2move 庫名 export 4.1 命令執行成功後,在data資料夾中的檔案列表如下 4.2 內容解釋 4.2.1 db...
yii2批量插入資料
yii2批量插入資料就是將資料整合在乙個陣列裡面,然後將這個陣列直接插入到資料庫,一次性插入多條資料.分兩種情況,第一種情況 全欄位插入,就是這個陣列中每條資料裡面的鍵都和資料庫裡面欄位名一致,且每個欄位都有.use yii helpers arrayhelper rows foreach mode...
Struts2字尾 深入Struts2
一 將action字尾變成html字尾 xmlversion 1.0 encoding utf 8 doctype struts public apache software foundation dtd struts configuration 2.1 en struts include file...