Mailing List
Home
Forum Home
Maven - Project building tool
Axis - Java SOAP implementation
Cocoon - MVC web framework based on XML/XSL
Lucene - Full-featured text search engine APIs
Log4J - A log library
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database error code ...
Subjects
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Servlet File Download dialog problem (IE6,Adobe 6 0)
Proposal: Adding jar manifest classpath in jar and war plugins
Unsupported major minor version 48 0 problem while running the an
   telope task
java security AccessControlException: access denied (java io FilePermission
axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
CREATING WAR Files
jsp data into Excel
Classpath problem
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
attribute
Printing problem
InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Running junit tests fails
XDoclet, Struts and Maven: Where to start? SOLUTION
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
AXIS: tomcat timeout ?
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
jsp data into Excel

jsp data into Excel

2004-01-08       - By Michael Zalewski

 Back
Reply:     1     2     3     4  

You should ask questions on the list (poi-user@(protected)), instead
of pulling individual people off the list.

The simplest way to do what you ask is just to add the following near the
top of your JSP page

<% response.setContentType( ?application/vnd-msexcel?); %>

Then just make the web page contain a single table. You can apply most
formatting styles, and you can use thead elements. The setContentType will
make the page open in Excel.

If you need more than a single sheet, or if you need something more
complicated than a single table, you can use POI. You can even use POI for
the simple case but the steps might be more complicated. If you are new to
Java, you have a big learning curve. You might start with

http://www.devx.com/Java/Article/17301?




-- --Original Message-- --
From: Terrence Lai Mun Tak [mailto:terence_lai@(protected)]
Sent: Thursday, January 08, 2004 10:16 PM
To: zalewski@(protected)
Subject: RE: jsp data into Excel

Hi Michael

I found the thread which you replied to Srilatha dated 30 Dec 2003 on the
export of HTML content from JSP to Excel.

I am currently trying to do the same with a JSP form that will append
information to an Excel file upon clicking on the Submit button.

However, I am not familiar with the codes as to how to create the objects,
and appending to the file (I am ASP-trained but the server we have is Unix,
which is why I have to use JSP). Would appreciate it if you could guide me
on this or direct me to a site where I can find the relevant code references
that I require.

Thanks in advance!

Regards
Terrence Lai
Singapore

Earn $52 per hosting referral at Lunarpages.