How to create a link for download a file in text format

Hi expect,
I want to create a link when I link that link a text file should get download which i'm specified in jsp page. I tried by using hyper link it didn't get downloaded just it opened as it is. How can I resolve the problem.

Swati.S wrote:
in href provide another jsp name or servlet and pass filename as request parameter to this jsp or servlet. In called jsp or servlet set content type to application/forcedownload.Yes, that works (usually), but, IMHO, is nothing but a hack that you shouldn't use (and I could care less how often it is currently used in varying hacked scripts, such as this bogus force-download PHP script I've seen). That is an invalid MIME type (or at least unofficial/non-standard mime tye that most browsers will have no association for), so, since the browser doesn't know what to do with it, it'll ask the user what to do. And even that is not 100% certain. All I need do is create a mime-type to application association for that MIME type and, guess what, it doesn't work again (at least not the way you intended).
The server should not be concerned with what the client does with the file linked to.

Similar Messages

  • How to create a link for downloading bill in PDF format from Biller Direct

    Hi,
    Our requirement is to create a link on UCES Biller Direct screen, where user can click and down load his bill or invoice in PDF format.
    If any one can help me on this I will be highly thankful to him.
    Regrds,
    Ranadev

    cordova1126 wrote:
    > Need help on how you can have a PDF or a Word file be
    downloaded off a site.
    > I'm not sure where the pdf needs to be for it to be
    downloaded and what the
    > download button should have to call for the download.
    Any suggestions would be
    > wonderful.
    Check help files for details on "getURL" action.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Replace the link "Create Bookmark Link" for "Download"

    When I execute a report from interactive columns in principal report ( published in the dashboard), I don't download for default, because this link not exist. Is it possible to replace the link “Create Bookmark Link” for “Download” (excel)?, Can I add additional link "Download" or "Export" to Excel?
    Thank.

    I don't understand what you want. Do you want a link that will download a Dashboard to Excel? Why do you want to replace the "Create Bookmark..." link? What's that got to do with your requirement?

  • How to create a link to download a .psd or .eps file

    I'm attempting to create a link to a .psd file for a user to download. Whenever I link to the .psd file, Dreamweaver wants to convert it to a JPEG. Is there a way to link to a .psd file to have the user download that file? I'm trying to have files that retain the original Photoshop elements (layers, channels, etc.) used to create the file. I will want to do the same with .eps files, but haven't attempted that yet. Any thoughts?

    Zip it.   http://www.7-zip.org/ - for windows.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • How to create a password for the pdf file

    In Adore Acrobat XI, how to create a password for the file? The help states going to Tools Menu and clicking on Protection tab - but there is no such option. In the file - properties - security screen, it shows the security details but does not allow to edit it.

    I think you may be mixing up two different products: Adobe Reader (free), and Acrobat ($$).

  • How can I create a link to download a file in Captivate?

    So, in my Captivate file, I want people to be able to download an XML file to their machine.  If I create a hyperlink to "open a file", then when a user clicks on it, captivate attempts to open the xml file in a browser window instead of downloading it.  I can't figure out how to use the download attribute for an href in captivate and I'm not sure if javascript to do this would execute properfly.  Anybody know the best way to accomplish a force download of a file from a captivate presentation (Captivate 6)?
    TIA.

    If you want to really do this so that it is consistent for all browsers, you'll need to implement this at the server level.  I did this with the Dynamic PDF Export Widget.  Typically, a PDF will be displayed in the browser, but I added the ability to download it instead.  It does require a PHP file (or some other server side script).  In the PHP file, you'll want to set the response header for Content-Disposition to "attachment"... that's the key.
    The elbow grease part has to do with managing how the browser handles the link.  You'll want the Captivate hyperlink to open a new window so that the student does not navigate away from your course in the current window.  But since you are opening a PHP file, you can inject javascript into the document of the new window/tab to close itself.  The download will still continue eventhough the window/tab was programmatically closed.  However, most modern browsers will automatically close the window/tab for you when downloading a file.  If you want to see an example of a PHP file that implements this, go ahead and download the trial version of the Dynamic PDF Export widget.  You'll see the create.php file in the zip package.
    http://captivatedev.com/2012/07/25/adobe-captivate-6-x-widget-dynamic-pdf-export/
    If you want to go simple as TLC Media Design suggested, just zip it and let your students unzip the xml file, or just rename the xml file with a .zip extension and tell them to rename the file back to .xml after downloading.

  • How to create a link for pirnting

    I have some jspx pages and taskflow pages and I need to create a link or button for printing them friendly.
    How to do that?
    Is there any document about pinting jspx pages?

    See the af:af:showPrintablePageBehavior tag in the Fusion Web Guide: http://download.oracle.com/docs/cd/E14571_01/web.1111/b31973/ad_output.htm#CHDIDBAB
    CM.

  • How to create Object Links For non standard SAP Objects?

    Hi all,
             I need to create an object link in cvo1n for a non standard SAP object (inspection characteristics) . we have two ways to do this
    1. Create a screen for the rquirement by taking the standard screens as reference.
    2. Implement badi document_obj.
    I need a step by step process to perform both the steps. Sample codes will be helpful.
    One more thing is that i need a link in the standard screens of inspection characteristics also. How to get a two way link both in cv01n and in the standard inspection char screen.

    hi
    Customizing for the Do cument Management , you must maintain the key fields for the SAP objects that you want to link to document info records, by choosing Control Data ® Maintain key fields.
    Process
    Program two screens for the following module pools for the SAP object that is to be linked additionally:
    u2013 SAPLCV00
    u2013 SAPLCVIN
    The process logic must be according to that of screen 0204 in program SAPLCV00 and must not be changed.
    Create the function module OBJECT_CHECK_XXXX (XXXX = name of the SAP object).
    If this object can be classified, this function module already exists in the standard system. Otherwise, copy the existing function module OBJECT_CHECK_EQUI (linking of equipment) and change it to suit the new object.
    also you can attach the document to PRT also. but it will not show you in dms. This type of attachment is only from otherside.
    thanks
    nitin
    award point if useful

  • How to create logical link for report and make that available in webui

    Hi All,
    Please  mention the steps to creae logical link for standard report(BI) or customized report and assiging it to work center,
    Thanks,
    priya

    There is a good guide available from SAP: service.sap.com/crm-inst
    It goes into most details you would want to know on including BI reports.
    The path is SAP CRM > SAP CRM 2007 > CRM WebClient UI
    cheers Carsten

  • Index - How to create an index for multiple InDesign files?

    Hi everyone,
    I'm using InDesign CS2 to create a 250 page catalogue. Most of it is finished now, and I've come to creating the index.
    The catalogue is spread over about 10 InDesign files. How do I create an index for this? No paragraph styles were set up when it was started, but there are character styles.
    I've done some searching - does it need to be booked so I Can index? And can I book it without paragraph styles?
    (I've only been using InDesign for about a year, mostly self taught.)
    Thanks in advance :)
    Naomi

    Creating a book from your files should be no problem at all. ID does
    i not
    synchronize styles across documents -- unless you order it to! (That's what the checkboxes at the left of the book documents are for. Do Not Use, in your case.)
    The Index function itself is book-savvy, but you might want to search this forum for a few recurring problems.

  • How to schedule a program for download a file to Presentation Server

    hi all,
    I need to schedule a program which will download a file to presentation server. How can i handle this or is there any other to download a file during scheduling?
    Points will be rewarded
    Thanks in advance

    Hi Jayasree,
    You can download your file to application server in background scheduling.
    In your program use OPEN DATASET command for achieving this.
    How ever, as far as i know, it is not possible to download the file to presentation server in background job.
    regards,
    G@urav.

  • How to create a method for reading a file

    i tried to make it as static method for reading a file and
    then to return string
    is this code correct?
              public static String fileMaterial(String fileName)
                   fileReader = new BufferedReader(new FileReader(fileName));
                   info = fileReader.readLine();
                   while(school != null)     {                    
                        return info;
                        info = fileReader.readLine();

    I created a class you might want to look at. I come from a world of C and love fgets() and other FILE stream functions. I created a class that uses the Java I/O buts to the calling application behaves like fgets and such. The block of code where I do the calling in the calling program even looks like C. In my class I capture almost all errors and set error buffers to the errors. The calling program looks at the return to see if it succedded or errored.
    BuffIO new = BuffIO.fopen("fiilename", "r");
    String s;
    if((s = new.fgets()) == null)
    System.err.println("error reading file: " + new.ferror());
    That would be waht the calling program does

  • How to create URL link for telephone number ,open to account search page and account result page ?

    Hi Experts,
    Bussines role - ZCC_ICAGENT 
    If user open this bussiness role and open Account page ,user enter telephone number and enter search account ,then result will be displayed.Instead of 3 clicks ,user click direct URL link ,telephone number is parameter,account Search and account result  page will be opened direct link.
    So how to do it..could you please provide me step by step...what are the steps wee need to follow for creating URL ..how to do it..Please help..
    Thanks
    Kalpana

    Hi kalpana,
    You dont need to do any setting for this.
    Following URL will be used as per your requirement.
    http://rrnewcrm.ril.com:8000/sap(bD1lbiZjPTI0MiZkPW1pbg==)/bc/bsp/sap/crm_ui_start/default.htm
    ?sap-system-login-basic_auth=X&sap-system-login=onSessionQuery&saprole=ZCC_ICAGENT&
    sap-phoneno=9999999999
    Here parameter sap-phoneno will contain the number you want to search for.
    In component ICCMP_BP_SEARCH, go to view BuPaSearchB2B. write below code in its inbound plug IP_INBOUNDPLUG-
    DATA: lt_ivr_url_param TYPE tihttpnvp,
             ls_ivr_url_param TYPE ihttpnvp,
             lr_searchcustomer TYPE REF TO if_bol_bo_property_access,
             ls_searchcustomer TYPE crmt_bupa_il_header_search.
    CALL METHOD cl_crm_ui_session_manager=>get_initial_form_fields
           CHANGING
             cv_fields = lt_ivr_url_param.
    lr_searchcustomer ?= me->typed_context->searchcustomer->collection_wrapper->get_current( ).
         CHECK lr_searchcustomer IS BOUND.
    READ TABLE lt_ivr_url_param INTO ls_ivr_url_param WITH KEY name = 'sap-phoneno'.
    IF ls_ivr_url_param-value IS NOT INITIAL.
             ls_searchcustomer-telephone = ls_ivr_url_param-value.
       CALL METHOD lr_searchcustomer->set_properties( EXPORTING is_attributes = ls_searchcustomer ).
             eh_onsearch( ).
        ENDIF.
    Thanks & Regards
    Richa

  • How to create registry Links for applications

    Hello NG
    I want to work with Zenworks application virtualization. Now my question is
    following.
    When i set up an application as Office 2010 the exe file for ex. Word or
    Excelwill be created. Now i need a registry value, that when I doubleclick
    to a docx or xlsx file, the appropriate software does start
    How can I do this?
    Thanks in advance for your help
    Ramon

    there are a few ways... zav can create an msi installer for you that will setup associations and copy the virt exe to any location you want (just like any other msi application installer, just with one file:). I prefer this method, but there is also another exe tool that will register those file associations, they recently changed the name but its well documented. I suggested downloading the pdf from novell, its pretty short and informative.

  • How to create a hyperlink for download a word file

    Hi,
    In a html page, I would like to provide a hyperlink which points to the word document "myword.doc".
    However this does not work as the brother considers the file as a html text and does not open it with MS word.
    Any help?
    Thanks
    Py

    It doesn't think it's html, unless the server tells the browser the content type is text/html, and I highly doubt that, unless you are not linking to the file directly, but linking to a JSP page or servlet which is actually returning the file. In which case, set the content type for the response to the proper type for the file.

Maybe you are looking for

  • Debugging IDOCs

    Hello - How do I debug an IDOC ?   The transaction codes I know for processing IDOCs are: WE02,  BD87 and WE19 I am trying to debug an IDOC which is creating a credit memo request in VA01. Thank you, LP

  • Need help in installing the SAP Jco

    Hi All, I'm installing HP Change Impact analysis on Quality center and bring SAP in Sync later.One of the installtion step isto install the SAP JCo(Java connector ).I have installed the SAP Jco and on starting the CIT Server..I get a exception messsa

  • Mpd and libmodplug issue

    When I am doing an mpc --update, mpd constantly segfaults when it tries to add my mod and sid-files. mpd[4276]: segfault at 0 ip b7bcfc92 sp b46f6900 error 4 in libmodplug.so.0.0.0[b7b98000+45000] Anyone else recognizes this problem?

  • Planned Order confirmation or cost collector setting?

    Hello, we have implemented the planned order backflushing on the corresponding reporting steps. But on the ERP side its only sending material to the cost collector and not directly backflushing it againt the planned order. On the SAP ME help page I s

  • Camera flash stuck "ON"

    The camera flash is stuck in the "on" setting and I can't figure out how to turn it off.  I've only had the phone for 4 weeks.