File Save as - Box: how to do this in jsp ??

hi,
i need a button in my jsp which opens a box, where
you can choose a path and write a filename, sothat
this file can be saved in this path. but i don't know
why...
i'm a beginner ..
thanks

ok, you can do something like below:
in your actionPerformed() method call another method to handle the event.
   ActionEvent e;
   public void actionPerformed(ActionEvent ae)
          this.e = ae;
          handleClick();
   public void handleClick()
        //  your own logic to handle button click
   }I think it will solve your problem.
Raheel.

Similar Messages

  • How to get a file save dialog box on button click

    Hi All,
    I have  some text  and I want to write this text in to a  file.Then I want to save this file to my local system using a file save dialog box so that I can choose the location where I want to save this file.Please tell me how can I do this in WebDynpro.
    If I cannot get the File save Dialog Box then how can I give the path while creating the new file so that it is created on my local system  as the application is running on server.
    Regards
    Rahul

    Hi Rahul,
    Sometime back I was also facing the same requirment and there are only two solutions to it one is what Armin suggested to use the file download UI element the other one you can get from this link How to write a file on our local machine using Web Dynpro
    Regards
    Sid

  • Oracle BPM 10.3 File Save Dialog Box

    Hi,
    I am using Oracle BPM 10.3. Can anybody tell me that how to get a File Save Dialog box in the method. On the method call i want to call Save Dialog box which will save the file on the local computer.
    Thanks
    Edited by: user9293762 on Sep 2, 2010 9:35 AM

    The compilation within Studio works with a bit smaller (like 35MBytes) project, thus I think the problem is some sort of memory handling.
    The problem comes up while it is trying to compie/load 'external resources': it still works with 512M or even 256M of heap before this operation.
    Some weird thing is that I cannot set Xmx >640M, nor launcher.XXMaxPermSize > 1024M (winXP SP2, 2G RAM). While I'm sure that nothing is hacked around the memory allowance of Windows (i.e. how much memory does it allow for particular executables), I think this operation should be tested to work even on 256M heap...
    On the other hand, the ANT compilation works well.
    Well, almost well.
    I have had some errors in my project, which ALBPM6.0 said to be OK, like defining a String array attribute 'not null' and setting no default value; or defining some object to be abstract and instantiating it.
    However these errors are not always reported, e.g. during catalog compilation: XY must be explicitly instantiated before being used since it does not have a default initialization... thus made it static (however, it has been used as static all the time).
    I had to hack CatalogPublisher a bit so that I can read them on stdout, and correct those syntax errors.
    For this possibility, iterate over the non-empty foCheckerListener.getPresentationErr() in CatalogPublisher after checkXO().

  • File Save dialog box not showing correct file name while saving file

    hi
    Currently, after the Submit button is hit, the File Save dialog box is displayed. If the user saves the file and then opens it then the output appears correct however if the user chooses to open the file without saving on the local machine then the correct viewer is not used to display the file. The name of the file is defaulted as qotSCopPrint.jsp and the default file viewer for jsp files is chosen to view the file. The format of the file is obviously not text (it is either pdf or rtf) so the output shows binary characters.

    data : v_repid like sy-repid.
    parameters : p_file like rlgrap-filename.
    initialization.
    v_repid = sy-repid.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = v_repid
                dynpro_number = syst-dynnr
                field_name    = 'P_FILE'
           IMPORTING
                file_name     = p_file.
    Message was edited by:
            Chandrasekhar Jagarlamudi

  • Hello, I have transferred my Acrobat XI Pro from old MAC to the new one. After the transfer can not open any PDF file. Any idea how to solve this?

    Hello, I have transferred my Acrobat XI Pro from old MAC to the new one. After the transfer can not open any PDF file. Any idea how to solve this?

    Hey ilyaz20360341,
    Could you please specify how exactly did you transfer Acrobat from one MAC to other.
    You might need to deactivate the software from your old machine and then activate it on the new one with the same serial number (for Acrobat license) or Adobe credentials (for Acrobat subscription).
    If you have done the same way, then let me know if you are able to open Acrobat itself.
    Do you get any specific error message while opening a PDF?
    Hope to get your response.
    Regards,
    Anubha

  • HT201210 could not be updated because of the firmware file is not compatible (how to resolve this problem or ios 6 could not be used on iphone4?)

    could not be updated because of the firmware file is not compatible (how to resolve this problem or ios 6 could not be used on iphone4?)

    Do you have iTunes 10.6.3?
    If not, update iTunes first then try again.

  • I am trying to save a document with the new pages and it will only save as a zip file any ideas on how to change this?

    I am trying to save a document with the new Pages and it is only saving as a ZIP file anyone know how to fix this or choose a different file type?

    Take a look at the FileSelector
    First make sure the FileSelector is expanded so you can see the directory and sidebar. That's what the little disclosure triangle up by the filename is for. Once the FS has been expanded to look like the above picture, look to see what subdirectory has been selected. Use the SideBar to select an appropriate one.

  • Wpg_docload not producing a file save dialog box

    Hi Everyone,
    I have a BLOB column in a database table and I want to show a link on a web page so when user click on it, it pops up a file download dialog box giving the user option to either open or "save as".
    I am using wpg_docload.download file but it seems to be load the blob data into the browser (inline)
    Here is the code:
       -- get image size
        intimgsize := dbms_lob.getlength(page_b_contents);
        -- print the header   
        owa_util.mime_header('Content-Type:application/vnd.ms-word;charset=utf-8', false);
        htp.p('Content-length: ' || intimgsize);
        htp.p('Content-Disposition:attachment filename="test.doc"');
        owa_util.http_header_close;
        -- download BLOB
        wpg_docload.download_file(page_b_contents);
    Any thoughts what might be wrong?
    Thanks

    How must wpg_docload.download_file hack across the network, and into the client o/s process executable running the browser, and then force that browser process to pop up a dialog box to save contents as a file?
    Do you understand the concept behind Mime types? The browser has specific actions (some configurable) for specific Mime types. PL/SQL can specify the Mime type. And provide a well formatted Mime header. It cannot however force the browser to act in a specific way when it receives that Mime stream from PL/SQL.
    See Office 2007 File Format MIME Types for HTTP Content Streaming - VSOfficeDeveloper: Known Problems, Bugs, and Fixes - Si… for basic header details.

  • There is a transparent color over my file in muse whenever I'm editing the file, does anyone know how to remove this?

    Here's a screenshot. I've tried everything to make it go away, including changing the browser fill color, but this just wont change. It does disappear when I preview the site online, though. Does anyone know how to remove this color? Thank you in advance!

    Hi Jessica,
    Please go to View > Click "Hide grid overlay".
    Regards,
    Aish

  • Neither Safari nor Firefox will display PDF files. Anyone know how to solve this? Safari vs. 5.0.5. MAC User. Thanks

    Since yesterday neither Safari 5.0.5 nor Firefox (latest vs.) will display PDFs in their windows. Black window for Safari, white window for Firefox. Anyone know how to solve this? Thanks

    Quit Safari.
    Go to /Library/Internet Plug-Ins/
    Move these filess to the Trash.
    PDF Browser Plug-in
    AdobePDFVieweer.plugin
    Relaunch Safari. See if that helped.

  • Runtime Server Error in '/' Application and a 'create root file to fix' dunno how to do this.

    For several weeks Firefox crashes when I close it down for the day. Firefox error message box sends crash report. Today I got I think from Firefox: please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration> Then there's a second file it says to add. Umm, where/how? The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
    <!-- Web.Config Configuration File -->
    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>
    Okay, but under ProgramFiles>Firefox there are several folders and none of them say "root" so where am I to create said file and how do I get it there? And then what? I sure don't want to crash Firefox any more than it does as it at least still works.

    jscher - wow. THANK YOU!!! Yes, pale yellow, have emptied cache. Perhaps now everything will again work glitchless. By the way, I completed about half of what all that the post on Firefox crashing said to do. I was a bit intimidated on the memtest86+ tool. But now I am again encouraged. Wouldn't you like to move to Idaho and be my close neighbor. Blessings! Thanks!

  • Different photos with the same file name!! How to change this?

    While I was organizing my photos, I realized there are about 30 or so photos that have the same exact file name as another photo. Example: There are two IMG_1243.jpg, but they are different pictures. They were taken at different times, even different years. I have used more than one camera to import photos. I have changed the name of one of the photos in the Title area in the information section of iPhoto. When I try to put the newly named photo into a folder that has the other IMG_1243, I get a message that says" An older item named "IMG_1243" already exists. Do you want to replace it with the newer one you are moving?"
    I want to have both IMG_1243.jpg photos in the same folder. How can I do this? Also, I have a few thousand pictures, so how can I tell exactly how many photos have the same file name as another photo?

    Celtic Mom
    Welcome to the Apple user to user discussion forums
    While I was organizing my photos, I realized there are about 30 or so photos that have the same exact file name as another photo. Example: There are two IMG_1243.jpg, but they are different pictures. They were taken at different times, even different years. I have used more than one camera to import photos. I have changed the name of one of the photos in the Title area in the information section of iPhoto. When I try to put the newly named photo into a folder that has the other IMG_1243, I get a message that says" An older item named "IMG_1243" already exists. Do you want to replace it with the newer one you are moving?"
    I want to have both IMG_1243.jpg photos in the same folder. How can I do this? Also, I have a few thousand pictures, so how can I tell exactly how many photos have the same file name as another photo?
    It sounds like you are using the finder inside the iPhoto library - do not do that - you will corrupt your library and lose the edits, keywords, etc that you have
    iPhoto does not care about duplicate file names - it handles it fine
    changing the title of a photo does not affect the file name - although when you export the photo you can use the title for the file name as an option
    What are you doing and what do you want to accomplish?
    Remember do not ever make any changes in the iPhoto library using the finder or any other program
    LN

  • Remote File Sharing via SSH-How to Set This Up the Easy Way

    So, I have been trying to gain access to my office iMac from my MacbookPro at home via the "interwebs" but keep getting the same issue...can not connect. I have read umpteen forums and threads. All give similar advice or are too technical to follow. I thought we made it work yesterday by installing Macfusion. That works just fine if the Mac is on. It will not wake a sleeping Mac. Here is my settup.
    Home (MBP running 10.6)
    Network (Timecapsule)
    Office (27in iMac running 10.6).
    I do have a static IP for the router.
    Here is what I want to do. Access my "sleeping" iMac from a different network via Connect Server for File Sharing. I have all the appropriate file sharing buttons checked. I can access TC using the static IP but that's as far as it goes.
    Is there a simple "Mac way" of doing this?
    Sincerely,
    Jim.
    Ps. I am happy to invest in a trusted third-party software that will "ping" the network to wake my Mac unlike Macfusion which connects only to a running Mac.

    Also check in System Preferences -> Energy Saver -> Wake for network access is ticked

  • File Save Dialog Box Option

    Hi Experts,
      Is there any Function Module or options available to save the contents of one Internal Table , by Browsing the Windows drive & Giving the File name.
    FILENAME = "C:\TEST.TXT
      CALL FUNCTION 'WS_DOWNLOAD'
             EXPORTING
                  FILENAME = FILENAME
                  FILETYPE = 'DAT'
             TABLES
                  DATA_TAB = FINALITAB.
    Instead of Hardcoding the Path (c:\test.txt) , i need to choose the drive & give the file name..
    Urgent!!!Help me.....
    Thanks in advance..

    data : v_repid like sy-repid.
    parameters : p_file like rlgrap-filename.
    initialization.
    v_repid = sy-repid.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = v_repid
                dynpro_number = syst-dynnr
                field_name    = 'P_FILE'
           IMPORTING
                file_name     = p_file.
    Message was edited by:
            Chandrasekhar Jagarlamudi

  • Package missing from file menu in CS6 - how to get this feature?

    Hi,
    I'm running Illustrator CS6 (version 16.0.3) 64-bit on Windows 7 64-bit as part of my Design Standard CS6. I'm trying to package a file but when I go to the File menu, there is no package option. Why is it not there? And how do I get the Package feature?
    Mark

    I'm missing the "Package" feature in Illustrator CS6
    http://forums.adobe.com/message/5449455

Maybe you are looking for

  • Ightroom 5.7 "lightroom encountered an error when reading from its preview cache and needs to quit"

    I got this error message after start in Lightroom 5.7 "lightroom encountered an error when reading from its preview cache and needs to quit". It seems also catalog .lrcat disappears from disk. Also preview catalog .lrdata doesn't exists. So I try to

  • Stop motion menus altogether

    I hate the motion menus. Hate them. I want simple straightforward non-moving graphics. I will use the one's Apple provides and have tried to stop the motion but they still move. I've dragged the slider to 0 for any menu that has motion yet they still

  • Ipod nano with funky car charger

    As a very stupid test I plugged my ipod into a gimmick car charger to USB connector that is supposed to plug into my USB powered coffee mug. Suprisingly, the Ipod Nano heated up instantly. Observing that the ipod probably should not "heat up" I unplu

  • Removal of flicker with loaded modules

    I have a framework that hosts dynamically loaded Flex modules.  Imagine that I dynamically load a module and then add that module is an element to an existing spark container.  Prior to adding the loaded module (cast to an IVisualElement) to the cont

  • SAP HCM Implementation: Best Practice for configuring

    Hi, This is my first independent project of HCM implementation. I have just started the system configuration. Done with setting up the PA, PSA, EG and ESG. Assigned to CC.  At this stage, I have a very basic question which is, what is the best practi