Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

JSP file export.

Thread view: 
Shahnaz - 11 Oct 2006 05:11 GMT
I am novice to JSP, can anybody please send me code how to export htaml
page table content into excel file.
Thanks in advance.
Andy Dingley - 11 Oct 2006 14:02 GMT
> I am novice to JSP, can anybody please send me code how to export htaml
> page table content into excel file.

Generate absolutely minimal HTML with the right structure and no
superfluous boilerplate on it. Cut and paste into Excel.
It's easy (really easy). Just don't trap yourself into thinking it must
be hard.

Let Excel do the work for you by using its good abilities to read HTML.
Trying to make a web protocol fit around Excel would be much harder,
especially as Excel doesn't have any well-defined standards for its
formats.
Mike Beaty - 11 Oct 2006 15:01 GMT
Here are a couple of options if you want to auto-generate an Excel file
from your Java code.  One would be to create a simple CSV download and
then open with Excel.  It would be a basic layout without colors or
formatting.  Another option would be to use the Jakarta POI API.  You
can read and create Excel files using this API.  I've never used it,
but it looks pretty simple:  http://jakarta.apache.org/poi/

-Mike

> I am novice to JSP, can anybody please send me code how to export htaml
> page table content into excel file.
> Thanks in advance.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.