Browse button for selecting directory

Hello All,
I need to put a browse button in my jsp so that the user can select the directory where a file can be saved.
How do I put this?
<INPUT TYPE="FILE" NAME="fffile">
This just gives me a open dialog.
I need one which will give me the directory selected in the text box.
Thanks in advance,
Arun

You can't. If you provide a link to a file, then when the browser gets that file, then it may prompt the user to save it or open it, depending on the file type, the browser's capabilities and the browser's settings.
If you want to force a file to be downloaded, you can do one of two things:
1) Tell the user to hold the shift key down when clicking a link, which prompts to "save link as..."
2) Use a script or servlet or something to get the file for the link clicked on and change the headers to include:
Content-disposition: attachment; filename=theFileName.ext
which should also for the browser to save the file.
But there's no way to select a directory to save in before hand.

Similar Messages

  • Error after clicking browse button to select SQL db for UPK 3.5.1 install

    I receive an error when I reach the point of selecting a database server in the UPK 3.5.1 Developer install. It asks for the SQL Login information and whne I click the Browse button, I get an error box that says:
    An error (-5011 : 0x08000ffff) has occurred while running the setup.
    Please make sure wyou have finsihed any previous setup and closed other applications.
    Kernal\Object\Wrapper.cpp (498) etc etc....

    When I try to select a database Server by clicking the Browse button at the Microsoft SQL Server Login screen during the UPK 3.5.1. setup, I receive the following error:
    An error (-5011 : 0x08000ffff) has occurred while running the setup.
    Please make sure you have finished any previous setup and closed other applications. If the error still occurs, please contact your vendor: Oracle Corporation (##IDS_SUPPORT_URL##).
    Error Code:     -5011 : 0x8000ffff
    Error Information:
    Kernel\ObjectWrapper.cpp (498)
    Kernel\ObjectWrapper.cpp (311)
    Kernel\IScriptWrapper.cpp (80)
    Kernel\ObjectWrapper.cpp (197)
    Kernel\IScriptWrapper.cpp (80)
    SetupNew\setup.cpp (488)PAPP:Developer
    PVENDOR:Oracle Corporation (##IDS_SUPPORT_URL##)
    PGUID:E230DC0A-5C4B-4963-8320-067FF3AF722E
    $15.0.0.498
    @Windows Server2003 Service Pack 2 (3790)
    IE Version: 6.0.3790.3959

  • Doubt on browse button in selection screen

    Hi,
         Iam writing the selection screen for presentation server and application server. I want to enter file for them. I am not using any LDB . I am writing the BDC program. Iam not using any Classes and Methods.
                      How to write Code for the BROWSE button.
    Regards,
    Ramana.

    PARAMETERS:  P_PSFILE TYPE LOCALFILE DEFAULT TEXT-051,
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PSFILE.
      PERFORM F4_GET_FILE_NAME USING    TEXT-132
                               CHANGING GV_FILENAME P_PSFILE.
    FORM F4_GET_FILE_NAME USING    P_DEFAULTPATH TYPE STRING
                          CHANGING P_LV_FILENAME TYPE STRING
                                   P_FILENAME    TYPE LOCALFILE.
      DATA : LV_RC        TYPE SY-SUBRC,
             LV_INIT_DIR  TYPE STRING,
             LT_FILETABLE TYPE FILETABLE,
             LS_FILETABLE LIKE LINE OF LT_FILETABLE.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
        EXPORTING
          WINDOW_TITLE            = 'Select File and Path'
          DEFAULT_EXTENSION       = 'XLS'
          DEFAULT_FILENAME        = 'Vendor_Lot_Data'
          FILE_FILTER             = '*.XLS'
       WITH_ENCODING           =
          INITIAL_DIRECTORY       = P_DEFAULTPATH
       MULTISELECTION          =
        CHANGING
          FILE_TABLE              = LT_FILETABLE
          RC                      = LV_RC
       USER_ACTION             =
       FILE_ENCODING           =
        EXCEPTIONS
          FILE_OPEN_DIALOG_FAILED = 1
          CNTL_ERROR              = 2
          ERROR_NO_GUI            = 3
          NOT_SUPPORTED_BY_GUI    = 4
          OTHERS                  = 5        .
      LV_RC =  SY-SUBRC.
      IF LV_RC <> 0.
        MESSAGE 'File Path Not Found' TYPE 'I'.
      ELSE.
        READ TABLE LT_FILETABLE INTO LS_FILETABLE INDEX 1.
        FREE LT_FILETABLE.
        P_FILENAME = LS_FILETABLE-FILENAME.
      ENDIF.
      P_LV_FILENAME = P_FILENAME.
    ENDFORM.
    Reward if usefull
    Narendra

  • After download, box which says 'you have chosen to open' 'greys out' after browse button is selected and whole page is frozen/crashed. PC restart neccesary.

    Hi Firefox
    After I have finished downloading a file the Mozilla Download page appears.
    I right click the download to open it and the 'You Have Chosen To Open' box appears in the bottom right hand corner of the screen with the 'radio button' already selected to 'Open with..
    All this so far is perfectly normal.
    However if I click on the 'Browse' button to make a choice then the title at the top of the box, the closing 'cross' and the 'OK' button have all faded to grey and are inoperable.
    Furthermore the whole Firefox page is frozen/crashed and can't be closed.
    I have no further options than to restart the PC.
    I have tried various suggestions I have found on your forums including deleting cookies, turning off the hardware accelerator, and I have uninstalled and reinstalled Firefox 12.
    I have looked at your 'Troubleshooting Information' and it does show a graphics driver problem. However my driver is the lastest nVidia driver for my GeForce FX5200 card and it has worked fine with firefox 12.
    WebGL RendererBlocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.
    GPU Accelerated Windows0. Blocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.
    Here is the specification of my computer:
    MSI K8N Neo motherboard (N1996 MS-7030 VER:1),
    an AMD Athlon (tm) 64 processor 3200+ (Socket 754)
    3GB of RAM.
    It has at present a NVIDIA GeForce FX 5200 graphics card.
    The system is running Windows XP Professional 32bit with SP3 and all drivers are up to date.
    I have used Firefox for many years and would not use anyone else browser ever!
    I have not had a problem until now. I do hope you can help me.
    Kind Regards
    Chris

    Dear mha007 Your brilliant! Now I have the correct terms it was the 'Opening' box that was freezing and it was the 'Choose Helper Application' that couldn't be accessed.
    However I followed the instructions which I have cut n' pasted below and I am sure it was the 'renaming' of the rdf file that put things right.
    Thank you very much I am very grateful. Kindest Regards Chris
    '''''''Reset download actions for all file types
    To reset how all file types are handled by Firefox back to default:
    Open your profile folder:
    At the top of the Firefox window, click on the Firefox button, go over to the Help menu (on Windows XP, click on the Help menu) and select Troubleshooting Information. The Troubleshooting Information tab will open.
    Under the Application Basics section, click on Open Containing Folder. A window with your profile files will open.
    Note: If you are unable to open or use Fire​fox, follow the instructions in Finding your profile without opening Firefox.
    At the top of the Firefox window, click on the Firefox button (File menu in Windows XP) and then click Exit.
    Rename the mimeTypes.rdf file to mimeTypes.rdf.old .
    Restart Firefox. '''''''

  • After I have migrated a 'master' profile into another, the browse button (for a download location) in Options, General doesn't work anymore. How can I fix this?

    Hi Supporters,
    I've been struggling with this some time (downloading / saving problems) and tried all kinds of variations. But I'll keep it simple for now.
    As a test .. I've just created a fresh firefox profile. Checked out if could change the download location, through the Browse button, and indeed that worked. I got an explorer dialog to choose a folder.
    Normally I would do the options, manage the search engines, do some layout stuff etc etc in order to get some 'baseline / master' profile I can evolve further into other more extended profiles. So you see this master profile will get copied into another one.
    But, having copied that fresh profile (having done nothing yet) into another seems to disable choosing another download folder. The Browse button in Options > General does not work anymore.
    There's more. If I browse to, say, C:\ as default download location but then enable 'ask me where to save ..' in the fresh profile and then copy this profile to another one .. if I then want to change the download location (which shows C:) it jumps to Desktop and again the Browse button won't work.
    This is driving me mad. Any ideas? Sorry for the long story, hope it helps.

    Hi guys,
    @cor-el: getting rid of not needed parts is what I always do. Besides prefs and localstore, only the search-metadata and permissions / signons are passed along. Oh, forgot to mention the mimetypes.
    No, my point is why is FF looking for those folders when there's no mentioning of these to be found in my options? Not even in de about:config ... When I state C:\ as my downloads location it's absurd to check any other folder first, which FF seems to do before giving me an explorer window showing .. C:\ as a starting point. Like my unrestricted laptop does.
    @jscher2000: Even if there are pointers to those default folders, FF should not be checking those. When I state C: I mean C: (see my answer above).
    No, I'm convinced this is a bug unless someone knows a way to stop that folder checking. And to be honest, the not working Browse button is the least of my problems (I use: ask everytime where). No it's the saving that is the problem. But I guess the underlying problem is the same. Saving / downloading, what's in a name ..
    Guys, thanks for your help ! I can't fix a bug so I'm going to let it be. I'll rebuild my master and will keep checking of saving a website becomes a problem somewhere. Mind you, the solutions offered in kb.mozillazine.org/Unable_to_save_or_download_files didn't work.
    Oh well, I'll keep my fingers crossed :)

  • Browser buttons for flash

    Is there a reliable way / workaround to get the browser buttons (meaning the back and forward arrows) to work on an all flash website (
    I have Dreamweaver CS4 if that helps)?
    I'd been directed to SWFAddress a few months ago, but I couldn't get that working even after digging around on the Asual site and elsewhere for instructions on how to integrate this deep linking feature.
    Thanks for any recommendations.

    Nevermind... I found out his Flash Player was WIN 9,0,47,0
    while everyone else is WIN 9,0,124,0 . He upgraded & it is
    working.

  • In table view, how to add one button for selecting page?

    Hi Experts,
    In the OBIEE 11.1.1.6, we have one uncommon requirement that customers want to randomly select actual page to view expected data in table view.
    For example:
    We make use of some columns to create one report in table view, and set 'Rows per Page' equal to '5',
    if this report contains 60 rows, it will have 12 pages, so customers want to select sepcial page number to view the some data. Is it possible to implement this requirement? Maybe we should write JS code.
    Note: Below table view, it has four buttons: First Row, Previous Row, Next Row and Display (500) rows in per page. So we want to add one button to select per page.
    We look at orgnial codes in WebBrowse, but do not know the following codes derive from which JS file.
    Could you please tell me how to find this file?
    <td class="TapeDeckCell"><img class="TapeDeckImage" onclick="" onkeypress="" src="res/s_blafp/viewui/pivot/first_dis.png" title="" alt="" ><img class="TapeDeckImage" onclick="" onkeypress="" src="res/s_blafp/viewui/pivot/previous_dis.png" title="" alt="" ><img class="TapeDeckImageEna" onclick="PTRowScroll('saw_5083_b','5','5', event)" onkeypress="PTRowScroll('saw_5083_b','5','5', event)" src="res/s_blafp/viewui/pivot/next_ena.png" tabIndex="0" onmouseover="PTTD(event, 'res/s_blafp/viewui/pivot/next_ovr.png');" onmouseout="PTTDO(event)" onmousedown="PTTD(event, 'res/s_blafp/viewui/pivot/next_dwn.png');" title="Next 5 Rows" alt="Next 5 Rows" ><img class="TapeDeckImageEna" onclick="*PTRowScroll*('saw_5083_b','-1)', event)" onkeypress="PTRowScroll('saw_5083_b','-1)', event)" src="res/s_blafp/viewui/pivot/showallrows_ena.png" tabIndex="0" onmouseover="PTTD(event, 'res/s_blafp/viewui/pivot/showallrows_ovr.png');" onmouseout="PTTDO(event)" onmousedown="PTTD(event, 'res/s_blafp/viewui/pivot/showallrows_dwn.png');" title="Display maximum (500) rows per page" alt="Display maximum (500) rows per page" > <Span class="TapeDeckRecords">Rows 1 - 5</Span></td>

    Hi Kobe,
    Thanks for listening me.
    I agree 11g have some issues unlike 10g. I've tried the same by creating a measure rcount(1) and name it as Page in RPD. I just pulled column Page in pivot table section 'Pivot Table Prompts' it is working but this may not answer your requirements.
    I would suggest to use the column in Prompt and go by between operator to allow user to select the rows between.
    In the report make Page as prompted.
    If you are okay with this can look forward to tweak it further, like values in the prompt multiple of 5 or 10s some thing like that.
    let me know updates on the same.

  • If I want to create a Listbox to run multple tests, how can I create a check all and clear all button for selection/​deselectio​n of all the tests

    create check all/clear all button for listbox

    Hi Arien,
    Parthabe is right, next time, try to create a new thread.
    So when others try to search for a topic, they can actually find it.
    I developed this example code that you can take a look at.
    It's using property nodes of the chart to control which plot to show and to force invisible
    Message Edited by Van_L on 03-06-2008 07:19 PM
    Van L
    NI Applications Engineer
    Attachments:
    choose plot.vi ‏25 KB

  • Slow load of browse button for Add Folder Link

    When our user adds a folder link and clicks the browse button the window loads extreamly slow. When admin privileges are applied it loads quickly, but with the standard group permissions that window loads terribly slow. I have a feeling it is realated to Portal checking permissions as it maps out the content area. Has anyone experienced this behavior and possibly found a solution to speed things up? Thanks!

    Olney,
    3.0.9.8.2 has a perf. patch. Check Metalink->Patches->Internet Products->Portal->
    queries on wwsec_sys_priv are very expensive.
    You need to use wwsbr_stats.gather_stats
    When our user adds a folder link and clicks the browse button the window loads extreamly slow. When admin privileges are applied it loads quickly, but with the standard group permissions that window loads terribly slow. I have a feeling it is realated to Portal checking permissions as it maps out the content area. Has anyone experienced this behavior and possibly found a solution to speed things up? Thanks!

  • Possible to have mouse activated slider with buttons for selection

    Hi,
    I was wondering if anyone has/is or if this can be dome easy enough....
    For example, instead of placing a row of buttons on the bottom of the template, instead, is it possibloe to have a mouse activated slider that the buttons are on and is activated when the mouse hovers over it.....?
    Hope that explanation is clear enough...;-)
    Cheers
    Rossco

    Captivate 7 has an option to show playbar on hover.  It becomes available when you select Overlay Playbar.  But this only applies to the standard skins that come with Captivate.  It won't help your specific need to have a set of buttons appear on hover over a hit area.
    It should be possible to do what you want.  But you'll need to group the buttons, give the group a name, create separate advanced actions that apply a fly-in and fly out effect to the group, then execute these actions via an event.  In your case you want the event to occur as a result of a rollover and rollout on a hit area.
    Captivate's slidelet object has a rollover event, but no rollout event you can use.
    The only way I know to have both rollover and rollout events is to use the Infosemantics Event Handler widget:
    http://www.infosemantics.com.au/adobe-captivate-widgets/event-handler-interactive
    Free trial version here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets

  • Browse Button for PHP Include Object

    Once an Include is inserted into the page is there a way to
    browse for the needed include file or do I have to hand type the
    path and file name?
    Thanks.

    WesleyF wrote:
    > When I insert a new Include (Insert > PHP Objects
    > Include) the Property
    > Inspector shows just a ? in the top left square and the
    Server box. Doesn't
    > have the Edit, etc. In Server window is include();
    The argument passed to include() must be a string. If you do
    this:
    include(myfile.php);
    you'll get just a question mark in the Property inspector,
    and the
    include won't work correctly.
    If you do this:
    include('myfile.php');
    You should see the Edit button. Moreover, the include will
    work correctly.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • JFileChooser for selecting directory?

    Hi,
    Are there any better alternative than JFileChooser if I want the user to be able to select a path only, not the filename?
    How could I do it if I necessarily have to use the JFileChooser? The user shall not select any file, only a directory...
    Regards,
    Anders

    Thanks, that helped!
    How could I loop through this directory (this level only, not subfolders), and get a list of all filename of a certain suffix?
    /Anders

  • What happened to the private browser button for safari

    I am stuck in private browser mode and there is no button to shut it off.

    Open a new tab to see the "Private" button in the lower left of the display.

  • Event for browse button for fileupload control

    I'm creating an application, where I need to check which file is choosen for the file-upload. Depending on the file upload, 2 other fields will be filled in because the filename is concerning a certain standard.
    Can I do this with javascript for example without needing to post my page.
    Any help would be most welcome

    You can do this with javascript.
    var fileName = document.getElementById('fileUploadComponentId').value;
    if (fileName.substring(fileName.indexOf('.' + 1)) == 'ext') {
        // the extension is "ext".
    } else {
        // the extension is not "ext".
    }

  • Firmware upgrade WRT120N - browse button not working

    Hi! I have wireless router WRT120N - my current firmware version: v1.0.06
    There is a new firmware version - I downloaded it on my desktop, accessed 192.168.1.1., selected administration, then firmware upgrade - but the browse button for selecting file is not active. I can't select the file to start the upgrade.
    Does anyone have the same issue? Any alternatives?
    Thanx in advance.

    Are you having internet connection issues with the router? Try a different browser or another computer to isolate. If the browse button is still not clickable, reset the router and try again. If it is still the same thing, download the firmware utility for BEFSR41 V4. It is a tftp.exe file. Once downloaded, you open and run it and it comes up a box where you enter information like the IP Address of the router, the default password of which is admin and then the firmware file. Make sure you are doing this upgrade on a computer that is wired to the router. You do reset once it is done and then reconfigure your router again for internet connection.

Maybe you are looking for

  • Adding new field in ME21N items level NO ADDITIONAL TAB or SUBSCREEN

    Hello Gurus!! I have a requirement where I am just trying to add a new field ZZ*** at Item level in ME21N (and no new tabs please) I got the modification key and now wat i see is that in screen 1211 SAP has some field mappings with metadata. Refer to

  • Remotely changing System Preferences via Firewire?

    Hi all, I've got an old mac mini and a new Mac book. The trick is, I've just moved overseas and don't have a monitor for the mini any longer. I have bought a cable to connect it to my tv, but I'm afraid the tv is too old, and won't play nice with the

  • Why does my type look bitmapped (jaggies)

    Why does my title type look bitmapped (jaggies)? It's fine in iMovie but looks crappy once I burn the DVD. The max. resolution is 720 x 540.

  • Root file system full

    Hai, Thanks to ll for their comments. I am getting frequent root file system full message. I have been deleting messages,pacct files from /var. But it still shows the same msg. But when I am restarting the system again it comes to 85%. what could be

  • Site solution help needed

    Hi, I have a potential client who needs a site that his clients can securely log on to and access information that he has uploaded for them. He doesn't need a merchant account but does require a secure interface and site. Does anyone know of a ready