How to use a servlet to display an excel spread sheet onto a browser?

Hi, I have a problem here, I couldn't display an excel spread sheet onto a browser..Can anybody enlighten me on how to go about it?
Thanks

Hi, I tried to refresh the 'application/vnd.ms-excel'
page by calling it again from another frame...it give me a blank page.
Does it means that the excel sheet cannot be reopen once it's open?
thanks

Similar Messages

  • How to transfer a set of data from Excel spread sheet to an Access database

    hi,
    Can any one please tell me how to transfer a set of data from Excel spread sheet to an Access database using SQL query.I'm using java API currently. I have done all sorts of ODBC connection in administrative tools.The file is in correct location. I have done certain coding but with errors.Help me to get rid of these errors,
    Coding:*
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection datacon=DriverManager.getConnection("jdbc:odbc:exdata","",""); *//For Excel driver*
    Connection datacon1=DriverManager.getConnection("jdbc:odbc:stock1","",""); *// For mdb driver*
    Statement datast=datacon.createStatement();
    Statement datast1=datacon1.createStatement();
    ResultSet excelrs=datast.executeQuery("select item_code,sdata,closing_stock from phy "); *//phy is the excel file*
    while(excelrs.next())
    String ic=excelrs.getString("item_code");
    System.out.println(ic);
    String d=excelrs.getString("sdate");
    double cs=excelrs.getDouble("closing_stock");
    int dbrs=datast1.executeUpdate("insert into second values('"+ic+"','"+d+"',"+cs+")"); *//second is the mdb*
    excelrs.close();
    }catch(Exception e)
    System.out.println(e);
    Error:*
    java.sql.SQLException: [Microsoft][ODBC Excel Driver] The Microsoft Jet database engine could not find the object 'C:\JavaGreen\phy.xls'. Make sure the object exists and that you spell its name and the path name correctly.
    thanks,
    kumar.

    JAVA_GREEN wrote:
    No i haven't mixed up.But the file from where i have to retrieve the data is in csv format.Even though i created another csv driver.and tried but i cud not find a solution to load/transfer a set of records from one file(in Excel/csv format) to another file(in mdb format).plz help me.Is there any other methods for this data transfer.A csv file is NOT an excel file.
    The fact that Excel can import a csv file doesn't make it an excel file.
    If you have a csv file then you must use a csv driver or just use other code (not jdbc) to access it. There is, normally, a ODBC (nothing to do with java) text driver that can do that.

  • How to use resource servlet ?

    Hi all,
    Does any body know know how to use resource servlet to share resources (xsd, wsdl etc) in OSB ? Kindly provid eme witht the steps
    Thank you.

    Hi Eric,
    We can share the resource in the following way, but unfortunately OEPE doesnt accept http urls in schemaLocation arrtibute
    How can I get the WSDL/Policy/MFL/Schema/Proxy via HTTP?
    You can retrieve many of the resource types directly from the OSB server by using HTTP instead
    of needing to use the service bus console. The general pattern for the URL is as follows:
    http://[hostname]:[port]/sbresource?[Resource Type]/[Project Name]/[Resource Name]
    CHAPTER 18 ■ HOW DO I . . . ? 477
    The [Resource Type] section of the URL may be any one of the following values:
    • BIZ
    • MFL
    • POLICY
    • PROXY
    • SCHEMA
    • WSDL
    The URL must be UTF-8 encoded. If the resource is stored in a directory, then the directory
    structure needs to be declared explicitly in the URL also.
    For example, in the Hello World project in Chapter 4 of this book, we defined aWSDL resource
    in the WSDL folder of the project. The name of that WSDL resource is set to HelloWorld. To retrieve
    this WSDL, you would use the following URL:
    http://localhost:7001/sbresource?WSDL/Hello+World/WSDL/HelloWorld

  • Uploading excel spread sheet using gui_upload

    Can any one guide me for how to upload excel spread sheet using function gui_upload.

    Use the FM gui_upload.
    TYPES : BEGIN OF tp_data,
              line(4096),
            END   OF tp_data.
    DATA: l_filename_ip TYPE string,
            tl_data       TYPE STANDARD TABLE OF tp_data WITH HEADER LINE.
      l_filename_ip = p_input.
    *--Upload Data
      CALL FUNCTION 'GUI_UPLOAD'
           EXPORTING
                filename                = l_filename_ip
                filetype                = 'ASC'
                has_field_separator     = ''
           TABLES
                data_tab                = tl_data
           EXCEPTIONS
                file_open_error         = 1
                file_read_error         = 2
                no_batch                = 3
                gui_refuse_filetransfer = 4
                invalid_type            = 5
                no_authority            = 6
                unknown_error           = 7
                bad_data_format         = 8
                header_not_allowed      = 9
                separator_not_allowed   = 10
                header_too_long         = 11
                unknown_dp_error        = 12
                access_denied           = 13
                dp_out_of_memory        = 14
                disk_full               = 15
                dp_timeout              = 16
                OTHERS                  = 17.
    File name is string type so convert it into string as shown above. Now give the path of the required file and give the required extension. Extension is necessary. Give EXL fr excel sheet and TXT for notepad file etc. Call the FM and u will get all the data in the internal table tl_data.
    Now once u get all the data in tl_data u can split it into ure required internal table as shown below.
    Write the below logic after calling the above FM.
    LOOP AT tl_data .
    *--Taking the contents of the input file leaving the header part
          PERFORM split_and_save USING tl_data-line.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " gui_upload
    *&      Form  split_and_save
          Splitting the contents from the input file and saving them into
          an internal table
         -->P_TL_DATA_LINE  text
    FORM split_and_save USING fp_data.
    *--Local data declaration
      DATA : tl_data TYPE STANDARD TABLE OF tp_data WITH HEADER LINE,
             l_type  TYPE c,
             c_comma(1) TYPE c VALUE ','.
    *--Split at the Comma
      SPLIT fp_data AT c_comma INTO TABLE tl_data.
      CLEAR inputtab.
    *--Move it to the target fields
      DO.
        ASSIGN COMPONENT sy-index OF STRUCTURE inputtab TO <fs_field>.
        IF NOT sy-subrc IS INITIAL.
          EXIT.
        ENDIF.
    *--Extract source data
        CLEAR tl_data.
        READ TABLE tl_data INDEX sy-index.
    *--Populate the target
        <fs_field> = tl_data-line.
      ENDDO.
    *--Append this record
      APPEND inputtab.
    ENDFORM.                    " split_and_save
    The above code will give u the required internal table.
    Reward if helpful..
    Cheers,
    Sharadendu

  • How can I form a group in address book. I need to transfer a large number of emails from an excel spread sheet to form a group to send emails to.

    I need to transfer a large number of emails from an excel spread sheet to form a group to send emails to. I can either use address book or transfer them to BTYahoo contacts and send from there.

    Hello, if you have the font that Photoshop is supposed to use to write the barcode, and each image is also listed in the spreadsheet, you can use the little known feature called variables: http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7417a.h tml
    see this video: 
    http://www.youtube.com/watch?v=LMAeX5pexNk
    Or this one:
    http://tv.adobe.com/watch/adobe-evangelists-julieanne-kost/pscs5-working-with-variables/

  • How to convert Oracle Report Output to Excel Spread Sheet..

    Hello Sir,
    How to convert Oracle Report Output to Excel Spread Sheet..
    Thanks..

    Hello,
    Please give us more information what kind of report(s). Sample example etc.,
    Sri

  • Display Excel spread sheets

    Hello...I'm very green with my BB 8830 and not sure if and how to load a Excel spread sheet on my device.
    Do I need additional SW?
    Thanks...

    Tross,
    Yes, you can reference any cell in your document from any other cell. An example of a cell reference to a different sheet, table and cell is:
    =Sheet 2 :: Table 1 :: C4
    Jerry

  • How to use a servlet adapter ?

    Hi all,
    I try to use the servlet adapter, but documentation is not very usefull on this point (like on many other point).
    The first step in documentation is : Create a directory in the classpath oracle.panama.adapter.servlet for the .class
    file. The MasterService creation should go smoothly (if you pray I suppose) if you also have the .class file in a similar directory where you
    are running the Service Designer.
    Questions :
    - I dont understand ' create a directory in the classpath oracle.panama.adapter.servlet'.
    What does it mean ?
    - How can I make the same thing on the client which running the Service Designer ?
    All input are welcome.
    rgds,

    Create your Servlet under the directory
    %ORACLE_HOME%\panama\server\classes\oracle\panama\adapter\servlet.
    The servlet should have the package declaration
    package oracle.panama.adapter.servlet;
    Copt the class file to the above mentioned directory.
    Then create a service using this class.
    Give the entire class name for the service
    eg
    package oracle.panama.adapter.servlet.Test
    where test is the servlet class name.
    null

  • How to use a JButton to display another form

    Hello.
    I am using Netbeans 6.5 to autogenerate a GUI. I have generated 2 separate forms, one is called MainMenu.java and the second is called subMenu.java.
    How do I do it so that when you click the start button (jButton1) in the main menu (MainMenu.java) it displays the submenu (subMenu.java).
    Here is the code as follows:
    //MainMenu.java
    public class MainMenu extends javax.swing.JApplet {
        /** Initializes the applet MainMenu */
        public void init() {
            try {
                java.awt.EventQueue.invokeAndWait(new Runnable() {
                    public void run() {
                        initComponents();
            } catch (Exception ex) {
                ex.printStackTrace();
    //Generated Code
        private void initComponents() {
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            jButton1.setText("Start");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            jButton2.setText("Exit");
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
        }// </editor-fold>
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
            // TODO add your handling code here:
    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
            // TODO add your handling code here:
            System.exit(0);
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        // End of variables declaration
    //subMenu.java
      public class subMenu extends javax.swing.JFrame {
        /** Creates new form subMenu */
        public subMenu() {
            initComponents();
    //Generated Code
           private void initComponents() {
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jButton1.setText("Level 1");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            jButton2.setText("Level 2");
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
               }// </editor-fold>
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
            // TODO add your handling code here:
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
            // TODO add your handling code here:
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new subMenu().setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        // End of variables declaration

    I asked my question in hopes that somebody has maybe had a similar question or has dealtwith something similar to what I am trying to do
    But you said you already know how to do this. You said you know how to create a JFrame and display it. So what is your problem?
    You said you know where to add the code. So again what is your problem?
    All you posted is code that was generated by the IDE. You have not make any effort to add your own code. Why do you think the code to show a frame here, is any different than the code you used to show a frame in the past?
    You learn by trying, not by asking people to spoon feed the answer to you.
    If you would even make the slightest effort at filling in the code where the IDE has told you to add the code I would be more willing to help. But apparently you have no desire to make the effort.

  • How to use "IMAQ ComplexPlaneToImage"? (Display after "IMAQ FFT")

    Hello,I use two ways to display a image after "IMAQ FFT":
    (1). Input a image->IMAQ FFT->Windraw(display);
    (2). Input a image->IMAQ FFT->IMAQ ComplexPlaneToImage(extracting magnitude) ->Winddraw(display).
    The two results are much different.
    I want to know what the two displayed images(especially in the second way) mean and where
    "IMAQ ComplexPlaneToImage" usually used.
    Thanks for your help!

    Hi Dan
    I am having some questions regarding the FFT Phase of the FFT with IMAQ ComplexPlaneToImage.
    From the posting below you mention that the phase is:
    Phase = Real/Magnitude.
    I am using the function ComplexPlaneToArray to see the value I am getting from ComplexPlaneToImage.
    Usually the phase is the inverse tangent  (Imaginary/Real). If we are using the Real and magnitude it will be the inverse cos(Real/Magnitude)
    I tried the above senario to verify the phase value we are getting from ComplexPlaneToArray.
    However, I get not get the value you are displaying in the phase  (ComplexPlaneToArray).
    How can I verify  ComplexPaneToArray ( phase) with the various
    ComplexPaneToArray(real)
    ComplexPaneToArray(magnitude)
    ComplexPlaneToArray(imaginary)
    I attached a phase fft.vi as an example of my issue.
    Regards,
    Corinne
    Attachments:
    phase fft.vi ‏153 KB

  • How to use old 2005 cinema display (20'') with MacBook Air (mid-2009)

    My old 20'' cinema display (2005) has three ports coming out of its power box (single-port dvi, usb, firewire).  Is it possible to use this display with my newer MacBook Air (mid-2009) ? If so, what kind of connector do I need?  Thank you very much for your help.

    To use my old Cinema display (2005) with my old PowerMac G5 (2005) I had to plug in all three ports (DVI, usb and firewire) into the desktop.  Can I really use the display just with the DVI output plugged into my MacBook Air mini-Display Port ? 

  • How to use DAQ Assistant to display two analog channels in a XY Graph

    Hi,
    I am new to LabVIEW. I have been assigned a project in which i have to display two analog signals from an analog potentiostat i.e. voltage and current (also a voltage signal) on a graph using labview. I am using a myDAQ device to acquire these analog signals and I am using labview 2013 to display these signals on a graph. I am using DAQ assistant to configure these signals. Rightnow I have separate graphs for each channel. However, I want a single XY graph to display one voltage as a function of the other i.e. I want to have voltage on the X-axis and current output on the Y axis. Any kind of help is greatly appreciated.
    I have attached a screenshot of the VI. that I have made.
    Regards,
    Max
    Attachments:
    New Microsoft Word Document (2).docx ‏32 KB

    Thanks for the quick response. I was able to make a X-Y graph. However, I can only see a dot floating around. It's not drawing anything. I want to see it making a plot as it collects data. Also, I want to see the complete waveform formed when I stop the VI.
    Thanks,
    Max

  • How to use a servlet in a Workflow process step.

    Hi
    I need am upgrading existing code from cq 5.4 to CQ 5.5.
    The exsiting code uses a servlet with an injected @MailService reference to send emails. It is currently used as a process step service.
    However, with CQ 5.5 I see that I need to implement the WorkFlowProcess interface, to see this class listed as in the Process step drop down list.
    The issue I have is if I keep the class as a Servlet extension , it does not show up in the drop down list of the process step.
    Is there a way to update the code to list this servlet as a process step?
    Or is there a way to inject the MailService reference into a class which only implements the "WorkflowProcess" interface and is not a servlet ?
    advice appreciated.
    thanks
    Ven

    The implementation of WorkflowProcess is to be deployed as an OSGi service, so you can @Reference the MailService in that class.
    http://dev.day.com/docs/en/cq/current/workflows/wf-extending.html#Defining a Process Step with a Java Class
    scott

  • How to use a Servlet to do HTTP streaming?

    Hello, everyone!
    I want to use a servlet to do simple HTTP streaming, just like what Apache is doing now. I just want the basic functions of HTTP streaming. I want the Servlet works like this, reads data from a local media file and sends through HTTP to client player to do streaming.
    Where can I find some sample source codes?
    Best regards,
    George

    Can anyone help?
    George

  • Learn how to use Powershell with AD, Exchange and Excel

    Hi.
    I want to learn how to script in Powershell to make my life easier at work.
    Now, I'm creating Distribution Lists with cmdlets, and other simple moves, but I'd like understand and use scripts with Excel to make it easier in AD and Exchange.
    Can anyone help me find out where I can learn Powershell with those tools? I've searched google and youtube, and bought books, but I'd like to learn especially about AD and Exchange through Excel.
    I also have another question, I'm trying to collect the telephonenumbers in one OU in AD, and found this cmdlet:
    Get-AdUser -Filter * -Properties OfficePhone | FT OfficePhone,UserPrincipalName
    I lined ut the OU path before -Filter, and used * -Properties Telephones Mobile to find the phonenumber in Properties-Telephones-Mobile in Active Directory. But I'm obviously doing something wrong.
    Could anyone please help me? 

    Hi Wezcomp,
    first of all, you can use Get-Help to learn how to use Cmdlets, by asking them what it is they do:
    Get-Help Get-ADUser -Detailed
    By Adding the -Detailed Parameter, it will explain each Parameter of Get-ADUser and what it does. Then it will show you examples on how to use the cmdlet. Very useful tool,
    Get-Help, learning to use it fully ought to be your first step, as this unlocks your access all other aspects of PowerShell. With that tool in hand, you could theoretically do the rest fully autodidactically (would be frustrating though, since you'd
    like to be able to do something specific right now. Don't worry, we'll gladly help anyone truly trying to learn.).
    There are lots of tutorials out there that can be useful in a general way (I added my own here). But regarding Excel:
    As Fausto said, CSVs are the simple most way to do this. I'd advice against delving too deep into Excel manipulation right now (lots of frustration, little immediate rewards), Csv is your friend. Notable Commands:
    Import-Csv
    Export-Csv
    For example, if you want to create a csv list with user data in it, using your previous example, you can do this:
    Get-ADUser -Filter "*" -Properties OfficePhone | Export-Csv "C:\example\users.csv" -NoTypeInformation
    By the way: FT (Format-Table) is a treacherous command: It displays objects to the console, but it is a dead end where data is concerned! Only use it when you want to check something quick on the console (like whether you got the right data), before
    continuing on without using a Format command.
    Cheers,
    Fred
    There's no place like 127.0.0.1

Maybe you are looking for

  • No AUC shown on settlement for WBS

    The WBS shows status of AUC but when you go to the the WBS and check the settlement rule, there is none shown.  If you go from the project WBS to the AUC (Extras>Asset under construction)the AUC was created.  The account assignment indicator is set a

  • Why does my conditional expression not work?

    I want to increment a global keeping track of how many critcal tests have been run. Usually I just increment it in the post expression of the test. However, if I have a test that loops it would increment on every loop, so I put a conditional expressi

  • OIM Connector for AD 2008

    Hi experts As far as my study, AD connector in OIM 9.1 does not support reconciliation with AD server 2008. an any one please share if identity manager 11 q supports this feature with AD 2008? best regards

  • Near last question, need to know bout best way to do this...

    Thanks for the replies...this is all coming into focus now, and I cannot thank you enough for all your previous replies. Just to nail this down, and try to avoid confusing myself as ive seem to be quit apt to do on this subject matter. I have had ano

  • Updating CC Desktop app always gives Error code: A12E1

    Ok, this is getting really old. The fifth release of Adobe Cloud desktop app has come out since I purchased CC last December. Every time, the installer fails with error code: A12E1 (see attached). Again, I followed all the instruction regarding renam