iT邦幫忙

0

jsp 顯示servlet傳來的資料

我有一個customer物件

public customer(String customer, String tel, int age,String tel) {
	this.customer=customer;
	this.tel=tel;
	this.age=age;
	this.tel=tel;
}

我在servlet 把幾筆資料加入多形ArrayList,把ArrayList存到setAttribute
request.setAttribute("customer",customerlist);
servlet 轉發給jsp時如何把customerlist裡面的東西全印出來

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
海綿寶寶
iT邦大神 1 級 ‧ 2016-11-11 09:24:14
最佳解答

看第二個解答

我猜
很多人看到你的 code
都和我一樣
驚訝的說不出話來了...

只能說
Good luck.

超超 iT邦新手 5 級 ‧ 2016-11-11 16:03:57 檢舉

/images/emoticon/emoticon16.gif

我要發表回答

立即登入回答