wood burning stoves 2.0*
The moose likes Servlets and the fly likes Creating Dynamic Content (excel/word/pdf fromat) using jsp/servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Creating Dynamic Content (excel/word/pdf fromat) using jsp/servlets" Watch "Creating Dynamic Content (excel/word/pdf fromat) using jsp/servlets" New topic
Author

Creating Dynamic Content (excel/word/pdf fromat) using jsp/servlets

m_venky_us
Greenhorn

Joined: Jul 20, 2001
Posts: 1
I need to Create Dynamic Web Page Content from my Server Side coding and has to show it on the clients screen in any of the following desired formats(EXCEL/WORD/PDF).
Eg: After getting the user inputs the content has to be generated dynamically and shown to the user on screen.
1.If the results to be displayed as a Bar/Pie chart , the content should be showed on Excel/ Word's Chart Using its Object.
2.If the results ha s to be shown as Table means we need to create a Table Dynamically in WORD And Show on the Screen.
Basically i need to get access to the EXCEL/WPRD/PDF Objects thro my JSP/Servlets.
I Need a soluton to this problem.
If anyone has a solution ple mail me at m_venky_us@yahoo.com
thanks
Venky
Julia Reynolds
Ranch Hand

Joined: May 31, 2001
Posts: 123
It sounds like a job for xml and xslt. I think there are
some xslt tutorial links here a JavaRanch. Also, check out the Java and XML presentation materials at this page:
http://www.mtjug.org/MTJUG/resource.htm#files
Julia
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
You need to look into the way HTML can be labeled with Content-Type: settings. Any servlets book (such as mine, hint hint) will have information on serving up various sorts of non-html content such as the formats you mention.
The main points are:
1. Getting the Content-Type: right
2. Setting the Content-Length: is often essential
3. Output using the plain OutputStream - NOT a PrintWriter
Bill

------------------
author of:
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"m_venky_us",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating Dynamic Content (excel/word/pdf fromat) using jsp/servlets