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 email@example.com thanks Venky
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
"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.