• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic