Re: JSP/HTML to Word/Excel
If you want to create a true Word or Excel file you will need to use a Java-COM bridge. fribeiro - Original Message - From: "LEBARON Christian FTRD/DMI/SOP" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 15, 2000 4:30 AM Subject: Re: JSP/HTML to Word/Excel You can set the content-type to the appropriate mime type as said below, but try to send the data in plain HTML, Word or Excel also understand this format. Best regards -Message d'origine- De : Visweshwar Ghanakota [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 15 juin 2000 06:02 À : [EMAIL PROTECTED] Objet : Re: JSP/HTML to Word/Excel set the content type to appropriate mime type(for ex. application/vnd.ms-excel for excel,application/msword for word) and then send the data in a format understandable by that application(for ex. csv for excel) then browser will automatically start the application for you. vishu Any input will be great. Thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: JSP/HTML to Word/Excel
any examples? -Original Message- From: Fernando Ribeiro [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 15, 2000 12:51 To: [EMAIL PROTECTED] Subject: Re: JSP/HTML to Word/Excel If you want to create a true Word or Excel file you will need to use a Java-COM bridge. fribeiro === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: JSP/HTML to Word/Excel
Take a look at www.linar.com. They have a reasonable Java-COM bridge that seems quite fine. fribeiro - Original Message - From: "Mark Torr" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 15, 2000 8:06 AM Subject: Re: JSP/HTML to Word/Excel any examples? -Original Message- From: Fernando Ribeiro [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 15, 2000 12:51 To: [EMAIL PROTECTED] Subject: Re: JSP/HTML to Word/Excel If you want to create a true Word or Excel file you will need to use a Java-COM bridge. fribeiro === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
AW: JSP/HTML to Word/Excel
IBM´s OleBridge for Java: ftp:///products/olebridge/OB1_0b.zip ...though I not yet found a simple example how to create a Word document on the client - from within my applet - and write/format to it :( Oliver -Ursprüngliche Nachricht- Von:Mark Torr [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. Juni 2000 13:06 An: [EMAIL PROTECTED] Betreff:Re: JSP/HTML to Word/Excel any examples? -Original Message- From: Fernando Ribeiro [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 15, 2000 12:51 To: [EMAIL PROTECTED] Subject: Re: JSP/HTML to Word/Excel If you want to create a true Word or Excel file you will need to use a Java-COM bridge. fribeiro === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
AW: JSP/HTML to Word/Excel
. The @com.structmap directive is used to specify how fields in a Java structure are represented in native code. The @com.parameters directive is used to specify how parameters are represented in native code. These directives can indicate that the Java type should be marshaled by means of user-defined methods when creating the native code representation, and the Java representation from native code. To accomplish this task, the custom marshaler must implement two methods, toExternal and toJava. For example, the JCW representing the IPersistFile interface needs to specify the String parameter in the Load method as custom marshaled. The custom marshaler will be indicated in the parameter as a fully qualified Java class. This is shown in the following example. @com.parameters([in, type=CUSTOM, customMarshal="com.ms.com.UniStringMarshaller"] pszFileName, [in, type=u4] dwMode) The Microsoft VM uses com.ms.com.UniStringMarshaller to marshal the string that is passed as the pszFileName parameter. com.ms.com.UniStringMarshaller must implement the toExternal and toJava methods for performing the actual data marshaling.2 The Microsoft VM calls toExternal and passes the memory address that should be filled in with a native memory pointer to where the actual bytes representing the string are located. The Microsoft VM also calls toJava and passes the address in native memory where the bytes representing the string are located. The toJava method is called to construct the Java equivalent string from those bytes. The return value of toJava is assigned to the parameter that was specified to have the custom marshaler. 2 Note that UniStringMarshaller also needs a method called releaseExternal to free the string created by toExternal. This is a requirement because cbByValSize is not defined by the class (the marshaler will allocate a non-fixed size amount of memory). Implementing Class Factories Creating an instance of a COM object is accomplished through a class factory, which is automatically provided for Java/COM objects by the Microsoft VM. It is sometimes useful, however, to implement your own class factory for a Java/COM object. A class factory contains a CreateInstance method that handles requests for new instances of a particular COM object. The class factory can then decide to return an instance that has already been created if a single instance of the requested object is required. Alternatively, a new instance can be created and returned. The class factory, therefore, controls how an instance of a COM object is created, the thread that the object is created on (important for single-threaded objects), and which instance is returned. Fortunately, the Microsoft VM supports implementing class factories in Java, which is accomplished in the same way that a class factory would be developed in C by implementing IClassFactory or IClassFactory2. Jexegen.exe (from the Microsoft SDK for Java) can package the Java-implemented class factory as an executable file that registers it under the COM object's CLSID in the LocalServer32 registry key. Then, any time an out-of-process request or remote request for the COM object is received, the Java-implemented class factory will be used. Summary The essential components for Java/COM integration have been presented, with emphasis on how COM components have been seamlessly integrated with the Microsoft VM. COM development with Java is simpler and less error-prone than implementing similar projects in C. The Microsoft VM handles much of the tedious IUnknown work, and handles creating and querying objects in an easy-to-use way. The Automation features available to Visual Basic developers are also present for Java developers with the option of delving deeper into the specifics of how COM objects are implemented and used. As most Microsoft and third-party products and services export object models for integration through COM interfaces, the Microsoft VM's Java/COM integration provides the ideal environment for developing COM components and applications. -Ursprüngliche Nachricht- Von:Mark Torr [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. Juni 2000 13:06 An: [EMAIL PROTECTED] Betreff:Re: JSP/HTML to Word/Excel any examples? -Original Message- From: Fernando Ribeiro [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 15, 2000 12:51 To: [EMAIL PROTECTED] Subject: Re: JSP/HTML to Word/Excel If you want to create a true Word or Excel file you will need to use a Java-COM bridge. fribeiro === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru
Re: JSP/HTML to Word/Excel
sorry, its www.linar.com only. Tarun Dewan Software Engineer Nucleus Software Exports Ltd. 33-35, Thyagraj Nagar Market, New Delhi - 110003. Tel.: 4627552 Ext. 342 E-Mail : [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Tarun Dewan Sent: Thursday, June 15, 2000 05:15 PM To: [EMAIL PROTECTED] Subject: Re: JSP/HTML to Word/Excel one example is JIntegra. Refer www.jintegra.com Tarun Dewan -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Torr Sent: Thursday, June 15, 2000 04:36 PM To: [EMAIL PROTECTED] Subject: Re: JSP/HTML to Word/Excel any examples? -Original Message- From: Fernando Ribeiro [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 15, 2000 12:51 To: [EMAIL PROTECTED] Subject: Re: JSP/HTML to Word/Excel If you want to create a true Word or Excel file you will need to use a Java-COM bridge. fribeiro === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
AW: JSP/HTML to Word/Excel
Sorry, here is the link to the JAVA-COM technical stuff from the Microsoft perspective... http://www.microsoft.com/java/resource/java_com.htm Oliver -Ursprüngliche Nachricht- Von:Wittich, Oliver [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. Juni 2000 14:08 An: [EMAIL PROTECTED] Betreff:AW: JSP/HTML to Word/Excel ... MICROSOFT VIRTUAL MACHINE Integrating Java and COM A Technology Overview By Chad Verbowski Software Design Engineer Microsoft Corporation January 1999 (c) 1999 Microsoft Corporation. All rights reserved. The information contained in this document represents the current view of Microsoft Corporation on the issues discussed as of the date of publication. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information presented after the date of publication. This White Paper is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED IN THIS DOCUMENT. Microsoft, Active Directory, ActiveX, Visual C++, Visual J++, Visual Basic, Windows, and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Other product or company names mentioned herein may be the trademarks of their respective owners. Microsoft Corporation * One Microsoft Way * Redmond, WA 98052-6399 * USA Contents Introduction1 Java Objects in COM 2 COM Objects in Java 6 COM Functionality in the Microsoft VM 8 Implementing a Java/COM Object 10 Summary 13 Introduction Sharing data across a network of computers in a bandwidth-efficient and language-neutral manner is essential to developing a cohesive system for doing business. Microsoft has worked hard to achieve a high degree of integration between all of its products. Key to this success has been developing a robust model that provides backward compatibility and language independence. The Component Object Model (COM) was developed to accomplish exactly these tasks and to provide a way to reuse and integrate components at run time. This is a significant development considering that most object-oriented strategies target reusing components at compile time. Using Java and COM, integration developers can employ Java's advantages and develop components capable of interaction with operating systems, applications, and services written in any COM-compliant language on any platform. Because most of the Microsoft( Windows( functionality is exposed through COM, and most Microsoft applications provide COM interfaces to their object models, Java developers have instant access to rich functionality. The Microsoft virtual machine (Microsoft VM) provides automatic mapping, allowing a Java object to be a COM object, and allowing any COM object to be accessible as a Java object. This is a powerful feature that makes all of the existing COM-based applications and services available to Java and enables any existing Java objects to be used by other COM supporting languages. The Microsoft VM contains functionality that automatically converts a Java object to a COM component complete with interfaces like IUnknown, IDispatch, IMarshal, and others used for implementing Microsoft( ActiveX( Controls and COM components. The Microsoft VM automatically handles object references, cleanup, and interface queries for any COM object used in Java, whether the component was written in Java or another COM-compliant language. These features, along with garbage collection and the replacement of pointers with references in the language, make Java ideal for many application development projects. Java/COM development offers distinct advantages over C implementations where the developer must contend with memory, threading, and cleanup issues. This is also true for Microsoft( Visual Basic( where developers can quickly implement an application but want more control over how individual components behave. Modern software projects typically contain an element of basic development where only the features available in the language are used. For example, for Java applications, this means that only the standard Java packages and derivatives from them would be used. By packaging new functionality as COM components, projects will benefit from distinct encapsulation of capabilities and a clear path for future component reuse. It is quite common to use existing legacy code or third-party APIs to reduce the development time and costs associated with a software project. Integrating these components can be difficult because they could originate from lots of vendors and may be implemented in different languages. Services like Microsoft( Message Queue Server (MSMQ), Microsoft( Transaction Server (MTS), Microsoft( Active Directory( (ADSI), Microsoft( Management Console (MMC), and many facilities provided by the Windows operating system are exposed
JSP/HTML to Word/Excel
Hello all, I have output of JSP saved as HTML ( I am creating URLConnection to JSP and writing to file stream )in the server, and i need to provide a way to download this page into word/excel. Is it possible?. (HTML to Word/Excel ) Any input will be great. Thanks __ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: JSP/HTML to Word/Excel
set the content type to appropriate mime type(for ex. application/vnd.ms-excel for excel,application/msword for word) and then send the data in a format understandable by that application(for ex. csv for excel) then browser will automatically start the application for you. vishu -Original Message- From: jangri ladu [SMTP:[EMAIL PROTECTED]] Sent: Thursday, June 15, 2000 5:37 AM To: [EMAIL PROTECTED] Subject: JSP/HTML to Word/Excel Hello all, I have output of JSP saved as HTML ( I am creating URLConnection to JSP and writing to file stream )in the server, and i need to provide a way to download this page into word/excel. Is it possible?. (HTML to Word/Excel ) Any input will be great. Thanks __ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets