Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.
X
Post

Mysql-J Connector

ramai yang tercari-cari mysql connector untuk jsp

click sini untuk mysql-connector

Post

export html table ke dalam bentuk excel

korang kadang-kadang mesti terpikir macam mane nak export html kepada dalam bentuk excel. sebab korang mesti ada nak buat reporting dalam excel kan?

so macam ni.

korang fetch dari database data dan letakkan dia dalam bentuk html table

so korang buat lah satu jsp file contoh name generateExcel.jsp
generateExcel.jsp

<TABLE>
<TR><TD>2</TD></TR>
<TR><TD>3</TD></TR>
</TABLE>

then lepas dah ada file tu. korang edit folder tu then tambah coding cam kat bawah ni

Response.ContentType = “application/vnd.ms-excel”
<TABLE>

<TR><TD>2</TD></TR>

<TR><TD>3</TD></TR>

</TABLE>

Post

simpledateformat

fuh.. ari ni saja posting aku yang ke 3 untuk tutorial. bukan ape, sebenarnya posting-posting tu adalah posting tertanguh yang memang aku nak post pun, tapi tak sempat.

ok. korang mesti akan bermain dengan time dan date kan? so post kali ni mudah aje, camne korang nak paparkan current date and current time mengikut sistem yang korang tengah guna skarang.

More…