Problem in response.setContentType want to open the file ms-access format

my question is :---Is it possible to open output of a jsp file in ms access format?
i m using response.setContentType("application.vnd.ms-access");but while saving this file ,the extension is jsp format not in mdb extension ...
but if i use response.setContentType("application.vnd.ms-excel") or response.setContentType("application.vnd.ms-word") or response.setContentType("application.vnd.ms-powerpoint ")..the file extension is changing and opens according to htier type defined in code..
is there any other solution open in ms-access format.?
please give the soution if any expert knows (urgent)
thanks in advance..
note:i ahve already asked this question before .but i didnt got the answer....

I am not 100% sure on this but I think it means the browser will try and open the file, I tested it with an xml file and using inline opens the xml in the browser window. I just looked at something I wrote more recently and I used the attachment option as this forces a 'save or open' dialog box.
  response.setContentType("text/" + contentType);
  response.addHeader("Content-Disposition", "attachment;filename=catalogue_download" + versionID + "." + contentType);

Similar Messages

  • I am unable to open files on amything!!! a box pops up that asks me what do i want to open the file with..every time!! I want files to open when i click on them!! This happens with emails, websites, everything

    I try to open attachments in emails and they will not open! A box comes up asking 'what do I want to open the file with', and it wants me to select from a list of options like - Firefox, IE, Word, Yahoo Browser. When I make a selection (usually Firefox) a new tab opens with a blank page! This always happens on attachments, links, websites......everything!

    These files were lost two years ago.
    That's not consistent with what you wrote in your first message. I can't help you unless I know what's going on. Either you do, or do not, have backups of all the data you want to keep. If you do not, then the first thing you need to do is back up those files. It makes zero sense to do anything else. In order to back up, you'll need either of two things: another Mac, in working order, with a FireWire port and enough space on its internal drive to hold your files; or an external drive, also with enough space.
    On the other hand, if you do have backups, or if you simply don't care about any of the data, then the solution to your problem may be quite simple. All you have to do is boot from your installation disc (your profile says you're running Mac OS 10.5), erase your internal drive, reinstall the Mac OS, then restore your data from backup. You will need to be selective in restoring software, because incompatible software may be what caused the issue.
    But it's also possible that you have a hardware failure, in which case you can't get your computer working again until it's repaired.

  • When I try to open a pdf link in my browser I am asked where I want to save the file.  I used to be asked if I wanted to open the file.  How do I get back to being asked if I want to open rather than save?

    When I try to open a pdf link in my browser I am asked where I want to save the file.  I used to be asked if I wanted to open the file.  How do I get back to being asked if I want to open rather than save?

    What browser?

  • On a certain site when saving a file, Firefox doesn't ask me if I want to save or if I want to open the file with a particular program. How do I change that?

    I want to open certain file types with a program (eg: adobe illustrator) without having to save it first but depending on the website, Firefox does not as me whether I want to save or open with...

    See:
    *http://kb.mozillazine.org/File_types_and_download_actions
    *https://support.mozilla.com/kb/Managing+file+types

  • When I am in LR and want to open the file in Photoshop, nothing happens.

    I have uninstall and intalled again, but still, nothing

    You can associate files from the Bridge level and the Desktop level.
    In Bridge CS4, go to Preferences > File Type Associations and change it to Photoshop CS4 for the file types you want.
    If you want to open files from the Windows Desktop in CS4, these are the instructions:
    Do this from the Windows Desktop:
    If you want your image file to open in Photoshop and it doesn't, right click on it and choose
    Open with > Choose default program… select Photoshop CS4 or CS6 and checkmark "always use the selected program to open this type of file".

  • I have a file saved on my document but i when i want to open the file it says the file cannot be opened. help..!

    plse help me to reopen my file in the document. all the other files can be opened except the latest one i was working with. it always say the file cant be opened. i dont know why..

    Hello,
    your file is probably corrupted. If you do not have a backup of this file, and if https://discussions.apple.com/message/16132821#16132821 does not help ; you can send your file to me, I will try to see if there is a chance to open it or if it is definitively lost...

  • I want to get the file in ANSI format.. Any idea?

    Hi all,
    I am doing a file to file bypass scenario .My client has demanded that the output file should be in ANSI format.
    I checked the <b>file.encoding</b> option in sap-help but ANSI is not available can u suggest that what encoding type i must use.
    I used ISO-8859-1 as well.But client rejected this file saying that ANSI characters not present in ISO-8859-1
    Any one pls throw some light on this how to acheive.
    Regards
    Seema.

    Hi Stefan,
    Thanks for those links.. I have few doubts .. please suggest me.
    Based on those links and as per my thinking, now i have to follow below steps in File Module .
    Processing sequence:
    <b>Module Name :</b> AF_Modules/StrictXml2PlainBean
    <b>Type :</b> Local Enterprise Bean
    <b>ModuleKey :</b> 0
    <b>Module Name :</b> AF_Modules/StrictXml2PlainBean
    <b>Type :</b> Local Enterprise Bean
    <b>ModuleKey :</b> 1
    Module Configuration :
    <b>ModuleKey :</b> 0
    <b>Parameter Name :</b> singleRecordType (Since it is Bypass scenario,i want the entire file to have endseparator as /r/n.)
    <b>Parameter value: </b> What i need to mention i this field??
    <b>ModuleKey :</b> 1
    <b>Parameter Name :</b> Convert
    <b>Parameter value:</b>  No value ??
    In the links, i found these 3 parameters stating as
    Enter the parameter convert. It can have the following values:
    &#9679;     none - no conversion
    &#9679;     CRLFtoLF - conversion from Microsoft Windows CRLF to Unix LF
    &#9679;     No value or another value - conversion from Unix LF to Microsoft Windows CRLF
    So now i want the file to be in (CRLF).SO i need to mention "No value" here??
    Please suggest me stefan if iam thinking in correct way.
    Regards
    Seema.

  • How to open the file in PDF format

    Hello,
    There is a requirement on our page that , on click of a button a procedure will be called. If that procedure returns “S” i.e success , then I need to open a new browser window and also set the url for the window (all programmatically). That url opens a letter in pdf format. If it is error , I should display the error on the page. Please provide any kind of solutions.

    Where is PDF stored after generation? a blob or a location on unix server? or it gives u a byte stream at runtime?
    Accordingly we can guide u with the solution.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                           

  • I installed windows 7 recently and also Adobre reader XI, and now I cannot open any of my previously created pdfs. Every time I get the message: Error opening the file. Access denied. What is going on?

    Recently I had to install windows 7 in my notebook because XP doesn't have more support. Before installing I backed up all my files to my external HD. Now that I instaleed windows 7 and also installed Acrobat Reader XI, I just cannot open any of my pdf files created prior to installing windows 7.
    Looking for help online, I found the solution of security and giving me access as an administrator to all my files, but it still keeps the same...
    Can some one please help me out?? I really need to work on many of this files ASAP.
    Thank you all in advance for you attention,
    Best,
    Henrique

    Can you start Adobe Reader?

  • Can someone help me? How do I change the option to pick where or what program I want to open a file after I've downloaded it? I tried to look for an option for this and can't find it anywhere.

    For example I download a file and I click on it and there will sometimes be a window that opens saying what program I want to open the file with? And then it'll also have a check box saying if I want to use this program for all files I download. I can't change it when I download the file because that one file I keep downloading keeps crashing my Firefox and I have to force quit. It's really getting on my nerves. It's an online statement I'm trying to view and I want to get rid of that problem!! Is there anyway to change that option without going to that download page?

    I would recommend going into device manager on your PC and making sure that you have correctly installed the IR dongle. Also what version of hotsync manager are you currently using?
    Post relates to: Treo 800w (Sprint)

  • Adobe Captivate could not open "the file" Ensure that:

    Brand spanking new installation of the trail version of Captivate 5.5.
    Try to open a file a client sent to me.
    Receive message
    Adobe Captivate could not open "the file" Ensure that:
    -The files is not open already
    - The file is not damanged.
    -The hard disk has suffecient available space
    -The system has suffeicent resources.
    Researched the blog and tried 2 suggestions:
    1. Clearing the cache. Did not work. I do not have a cache folder. I haven't created a Captivate 5.5 project. I'm just trying to open a file sent to me.
    2. Tried deleted bak file. Didn't work. Captivate 5 keeps recreating the file.
    Other facts:
    Other people have been able to download the trial version and open the file.
    I have Captivate 4 on my machine.
    Any suggestions?
    Thanks

    I'm experiencing about the same problem:
    I made a software demo using Macromedia Captivate on computer 1 en sent it by e-mail to computer 2.
    On computer 2 I installed a Captivate 5.5 trial and I want to open the file in 5.5.
    The file is not locked as far as I know (I right-clicked the file > properties > unlock)
    I do have sufficiënt available space and resources. The file contains 135 slides but is not too large as I tried to do the same thing with a 50-slide file > same error message.
    I tried creating a new blank project > I copied the slides into the blank project, saved again on a local drive, sent it to computer 2 again, but same error message.
    Please help, I'm getting desperate.
    Marieke

  • CS5 cant open the file as it may not be recognised or missing plugin?? HELP!

    This is the warning message i keep getting the file is a PDF and was saved on the program Nitro Pdf i have since deleted the programme and want to open the file in InDesign but keep getting this box any ideas?

    InDesign cannot open PDF directly without the PDF2ID plugin from Recosoft. You woudl normally PLACE a PDF file the same way you would place an image.

  • In using mail with my mackbook air with maverick, to open a message takes time as if the message is downloaded & its same every time I want to open the message from inbox.

    In using mail with my mackbook air with maverick, to open a message takes time as if the message is downloaded & its same every time I want to open the message from inbox.

    WoW! I'm surprised by the speed you reply and how serious you are with your answers! Thank you very much guys!!!
    Replying to Toad-Hall:
    I have a proper mailing list created as the manual says. It's a small group of contacts that exist in the address book. I do not type them as CC I just write "clients" and before I finish the word the name of the list appears.
    How can I stop Avast from scanning out going mail? It's the free version and I haven't found a real solution. I also tried to totally turn off the "mail shield" but I kept facing the same issues. However, I just turned it off and tried to send the mail, I didn't restart windows or thunderbird
    The idea with ipage server was fantastic! It would never come to my mind!!! As far as I see, the limit is 250 mails per hour. I doubt if I have ever reached the 50% of it. I also don't reach the bandwith limits... Besides that, if I had exceeded the limit I would get multi responses that "mail was not delivered".
    I want to thank you both for your excellent help so far. I'm sad to say that I still haven't solved the issue. When I made smaller lists, with the same addresses chosen from the address book I could send the messages, having a short delay. I would blame Avast but I tried the same on another laptop with my favourite NOD32 and had the same problem.
    What else should I check? Should I focus on Avast?

  • Downloading a file would bring up an option to open the file or save it - for some reason now it just downloads straight to the download folder. Why? Problem with Firefox or something else?

    Downloading a file would normally bring up an option to open the file with the appropriate program or save it - for some reason now it just downloads straight to the download folder. Why? Problem with Firefox or something else? It's very frustrating - sometimes you want the file opened first so it can be discarded or saved to a different location.

    Hey. that's great! Thanks for posting back with the outcome.

  • Are you sure you want to open the application

    I get asked "+Are you sure you want to open the application+" when I open htm files e-mailed to me.
    Does anyone know to stop this?
    It never used to happen with older versions of Safari and Mail.

    baltwo,
    thanks again for your response.
    I have changed that setting a few times with various other changes in different combinations. I rebooted but have not tried repairing permissions yet, will do so in next few days and will let you know result.
    Thanks again for your assistance.

Maybe you are looking for