用jsp吧,apache的poi很强大。
http://expert.csdn.net/Expert/topic/1306/1306295.xml?temp=.4433252