How can I open/save .xlsx file using java

Hi
I have a jsp whose contenttype of response is application/vnd.ms-excel.
When I am saving the file as .xlsx and opening from disk it displays error message.
How can I save and/or open the file as .xlsx?
Any advice will be appreciated.
Thanks
Rohini Kumar J

sunshine_vennela wrote:
I have a jsp whose contenttype of response is application/vnd.ms-excel.That's not the way to create excel files. You're just creating a plain vanilla HTML file and fooling the browser with a wrong content type.
Checkout the Apache POI XSSF API or the OpenXML4J API's to create xlsx files and use a servlet to write it to the outputstream.

Similar Messages

  • How can I download a .xlsx file using Numbers?

    I'm new into Mac & I have no clue in how can I open a excel file .xlsx in a Mac...when I tried it showed the file was corrupeted. Anybody? Please.

    It may in fact be a corrupted file, in which case you are out of luck. You could try opening it with LibreOffice and if that works, save the file as .xls and try the saved file with Numbers.
    Jerry

  • How can I open old cwk files using OS X 10.8.4?

    I have tried to open old cwk files using Pages, using Numbers and using Keynote as well as trying to open them with Word or even OpenOffice.  However, the most I can get is what looks like gibberish.  Any suggestions?  Thanks

    Don't know if you found a solution to your cwk File problem but I had the same problem and solved it by downloading this program and was able to open my old cwk files.
    libreoffice That will oppen old cwk files and its free (by donation)
    Hope this helps?
    Cheers

  • How can I open AppleWorks 6 files using Pages or Word?

    I am currently running Mac OS X v.10.4.11, but I am turning in my old mac for a new one in about a week. Almost all of my important files are AppleWorks 6 files and my new mac will not have this program since it has been replaced with Pages. I currently have AppleWorks 6, Microsoft Word 2004 for Mac, and Pages 08 on my old mac. I am unsure as to what applications I will have on my new mac (I am a teacher and the macs are school computers so I do not have control over the software), but I think it will have both Word 2008 and Pages 08 or 09. So far I have not had any luck opening my AppleWorks files in Pages or Word. I have been able to copy and paste the AppleWorks files into Pages (they are mostly Draw documents, not simple word processing), but they become an image so I cannot edit the content. I need to be able to edit my documents on my new computer and do not have time to open each AppleWorks file and copy it to Pages anyway. Any suggestions to help me with this compatibility problem?

    AppleWorks will run fine on your new Mac, though if you transfer it from the old one you should delete it from there to stay within the terms of the licence. You would need to copy the Appleworks folder over, not just the application.
    Pages can open Appleworks 6 word processing documents, Numbers can open Appleworks 6 spreadsheets. It's possible to open AW Draw documents in Eazydraw, or in Pages through a workaround. Nothing will open AW Database documents.
    I have written a detailed article going into the process of migrating from Appleworks, including the workaround for Draw>Pages:
    http://www.wilmut.org.uk/aw

  • How can i digital sign a file using JAVA?

    and how can i verify the digitially signed file was not altered by anyone using JAVA?
    please provide me with the simpliest way to do this.
    thanks a lot.

    I have no idea but you might want to take a look at :
    http://java.sun.com/j2se/1.5.0/docs/guide/security/index.html
    hth

  • How can i rename a jar file using only java code

    i have tried everything i can think of to accomplish this but nothing works.

    ghostbust555 wrote:
    In case you geniuses haven't realized I said I tried everything I can think of not that I tried everything. So help or shut up I realize that I didn't try everything but if you can't figure it out either DO NOT POST.
    And the question is how can i rename a jar file using java code? As it says in the title. Read.I would tell you to use the File.renameTo method, but surely that would have been obvious, and you would have tried it already? But maybe you didn't. You were kind of lacking in details in what you tried.
    And yes, I am a genius. Just don't confuse "genius" with "mind-reader".

  • How can I open Microsoft Word files on my iMac?

    How can I open Microsoft Word files on my iMac?

    You can even use the Pages app that is installed on your computer. Finally you can buy a license of Office for Mac and have Word, Excel, PowerPoint and if you want Outlook too.

  • How can I open a PDF file without first saving the file?

    How can I open a PDF file without first having to save the file?

    How can I open a PDF file without first having to save the file?

  • How can I open Outlook .msg files?

    How can I open Outlook .msg files?
    I have FireFox 3.6.15

    It's not an apple solution but you can try MailRaider by 45 RPM software. I have not used it personally but it was one of the hits that came up when I did a google search for .msg on Mac.
    Hopefuly the link posts but if not then just head over to macupdate and do a search for MailRaider
    http://www.macupdate.com/app/mac/31845/mailraider
    Hope this helps.

  • How can I open a new page (using "Pages") when I already have another page open?  It just keeps reverting to the page I have opened already and won't let me open another one?

    How can I open a new page (using "Pages") when I already have another page open?  It just keeps reverting to the page I have opened already and won't let me open another one?

    To make a new document, go to File > New From Template chooser and choose the type of document you wish to create.
    To add a new page to an existing document go to Insert > Sections > Blank.

  • How can I open the windows file directory in "WHEN-BUTTON-PRESSED" trigger

    Dear All,
    How can I open the windows file directory in “WHEN-BUTTON-PRESSED” trigger?

    Blessan Joseph,
    The solution is dependent on your Forms version and if your applications is traditional Client/Server (CS) (Forms 6i and lower) or web deployed (Forms 6i and higher). For CS, you would use the Get_File_Name() built-in as Faa demonstrated. For Web, you will need to use the WebUtil library function Client_Get_File_Name() as Sarah (OGIR) demonstrated. Both of these functions will return the full path to a file. Note: WebUtil is an external library so it requires you to perform some configuration on your developer client as well as on the Application Server. WebUtil is included with Forms 9i and higher, but you must download it for Forms 6i.
    My requirement is user should able to select windows directory for the output.Do you really need to allow the user to write to a file in the Windows directory? This is very dangerous and you should not allow users or programs to write to the Windows directory. Users should only be able to write files to "User" directories (\My Documents\<Directory name>).
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How can I open and edit files that were developed and published by ftp to my host on my old macbook, which I can no longer access.

    How can I open and edit files that were developed and published via ftp to my host on my old macbook, which I can no longer access. The HD containing the files cannot be accessed. I want to be able to download the published files to be edited in iweb?

    You CAN'T download published files and then edit them in iWeb because iWeb can't open them - it has no import facility so is unable to open any html or css files - a previously published site.
    You can download these files yes, but you'll need to use them as a guide or to cut and paste text from there whilst you re-build your site in iWeb.
    The only other way is to download the files and then open them with an html editor such as TextWrangler or use one of the other web design programmes out there that is capable of importing html and css such as Dreamweaver of Flux 4.
    These are your only alternatives as iWeb can't import and if you want to continue to use iWeb, then you'll have to re-build your site from scratch.  If you do just remember to back up your domain.sites file this time around - it is found under your User/Library/Applicaion Support/iWeb/domain.sites.

  • How can I open OS 9 files from my old computer on my 2012 MacBook Pro?

    How can I open OS 9 files from my old computer and use them on my 2012 MacBook Pro?
    David

    GriffinParkCondos wrote:
    How can I open OS 9 files from my old computer and use them on my 2012 MacBook Pro?
    David
    What type of files?
    Pete

  • How can I open a cc2014 file in my cs6 version of Indesign ?

    How can I open a cc2014 file in my cs6 version of Indesign ?
    I have several files that has been saved in a cc2014 version and I can't open them in my CS6 version of Indesign.
    I don t have access to anyone who have the cc 2014 version to convert the file.
    How can I do it from my cs6 version?
    THANKS!

    You can't do it from CS6.
    You have to export to IDML from InDesign CC2014 (or whatever the version it was created in) and then open the IDML in the earlier versoin of InDesign.
    All explained in the FAQ on the main forum page.

  • I have a new IMAC with a Maverick platform (I can update to Yosemite). I did all graphics on a G5 Power PC (very old), in Freehand (very old)... How can I open old Freehand files on this new Mac? Can I still open and work in Freehand on this new Mac?

    I have a new IMAC with a Maverick platform (I can update to Yosemite). I did all graphics on a G5 Power PC (very old), in Freehand (very old)...
    How can I open old Freehand files on this new Mac?
    Can I still open and work in Freehand on this new Mac?

    Let me see if I've gotten this right! You want to remove an account from BOTH machines? Do this for your new machine first, then for the other.
    Click the Apple logo on the top left of the screen, System Preferences, Users and Groups (under Systems), unlock the lock in the window if its locked (you need to know the password), select the user that you wish to remove, and click the - sign next to the + sign for Login options. A window will pop up with some options. Select Delete this user and securely, and click 'Delete user'.
    After this, do an update from the App Store.
    Thats all there is to it.
    For the other machine repeat the process except for one thing. Before you delete the user in this case YOU, you will have to give Administrator priviledges to your son bu checking the box 'Allow user to administer this computer'.
    Do NOT do anything from Finder ... if you dont know how to fix the consequences of the problems caused.
    There is no need to unauthorize your iTunes account on your new machine. Do it on the old machine though.

Maybe you are looking for