How to open local file in HTML/JSP

Hi,
Does anyone know how to open a file outside the war folders?
I have tried this
TEST FILE
but it doesn't work.
I'm using Jboss4.2
Thanks,

You may find this article useful: http://balusc.blogspot.com/2007/07/fileservlet.html

Similar Messages

  • How to open vcf file in html in browser or pdf in adobe

    Can Any on tell me
    In flash as3 website
    How to open vcf file in html in browser or pdf in adobe?
    I want all visitors to be able to view vcard info. What if visitor does not have software to view vcf file?

    Hi,
          if u want to show a pdf then u can use fscommand("exec",batchfilename)
    and something.batch  will open the pdf

  • How to open local file link in IE ?

    I know, this question is not APEX-related per se, but I was not able to google the fix to this problem.
    In my application, users can open a file open dialog and retrieve a complete file path that is later stored in the DB. Of course, Firefox's javascript does not allow this, but Adam Fisk's applet (https://bugzilla.mozilla.org/show_bug.cgi?id=405630#c40) does the job.
    The file path links to file:///..... . In Firefox, I have managed to open these links with NoScript settings (white list for our intranet trusted addresses and "allow local links" for trusted sites).
    Also, there is a LocalLink plugin (http://kb.mozillazine.org/Links_to_local_pages_don%27t_work) that allows to open local file links from context menu.
    However, on Internet Explorer nothing happens and LocalLink and NoScript are only for FF.
    Has anyone here managed to open local and intranet file links in IE?
    Igor

    You may find this article useful: http://balusc.blogspot.com/2007/07/fileservlet.html

  • How to open local file in BSP

    Hi,
    My requirement is we have to provide one hyperlink and when user click on that one local file should open. The Hyper link contain the path of local file, I Tried with the following option, its working fine in HTML code but not in BSP.
    <a href="C:\My File.PDF">here</a>
    Any Suggestion.
    Thanks

    Hi Ricardo,
    Thanks for the quick response, but my requirement is not downloading and uploading files, my requirement is ' I Have to provide one hyperlink in BSP Page, and when user click on this link one local file should open. For exa. try to save this code ( mention in Sub Line ) in text file and save it as HTML Extention.
    <a href="C:\My Filel.PDF">Open my File</a> "
    when you execute this file as a result on the web page you will get text 'Open my File' and when you click on there than a file which is stored in location C:\My File.PDF will open, same thing I would like to do in BSP.
    Thanks and Regards
    Ravi

  • Trying to open local files(gif, html, swf etc) with Firefox only opens a blank window.

    Currently on FF33.0.2
    I used to open gif and swf files(also doesn't work on saved html files) on my local hard drive with Firefox just fine before by just manually double clicking the file and FF would automatically run it just fine.
    Now it only opens up a new window in the startup page.
    Any other browser(Chrome, IE) that I use to open them works.
    Also, I can manually force FF to run the files by dragging or using the [Open] command in the menu bar but then it's much more convenient if it runs them automatically by clicking the files themself.

    Try to redo the default browser setting and temporarily set another browser as the default browser.

  • Opening Excel file in HTML

    Hi All,
    Does anyone know how to launch Excel file in HTML or jsp?
    Wait...i know one method to open Excel fiel using
    Window.open(blah...blah..)
    In this case we can specify toolbar option..
    But in my application i am loading excel file in frame.But frame doesnt have any option to set toolbar.....
    Please let me know if you have soln for this....
    Regards,
    Surya

    Hi,
    I can open excel file using window.open...but my requirement is forcing me to open it in frame....And i m able to open it properly in frame...but i want toolbar to come along with that frame...
    according to folowing lin they say it is not possible have scenario like this...
    http://support.microsoft.com/kb/157353/EN-US/
    Please see whether you can help in this regard...

  • File open menu will not open local files using open command but the same files will open if I double click them (permissions seem fine)

    Under File menu Open File will not open local files even those downloaded to the desktop by Firefox 5.
    If I double click on HTML file it does open
    Reinstalled. Same behaviour. Default Browser set correctly.
    Permissions set correctly. Odd behaviour.

    Are you sure it hasn't imported?
    Check for the track names (trackname only, not Album or Artist)) and see if they have a blank Artist and Album, because WAV files have no MetaData, so are kind of stupid as far as knowing anything about the Artist, Album & track id.
    You can't search by 'Untitled' either as there is literally, no name at all, but iTunes does pick up the actual physical track name in Finder and uses that. As an example, if you renamed your Aerosmith WAV file from say 'Toys In The Attic' to 'Love Song' it would import the track as 'Love Song' as that's all it can go by.
    There are a few iTunes AppleScripts that let you import from a file of WAV music, by looking at the enclosing Album in the enclosing Artist as that's how most PC progs create the WAV file structure.
    Mike

  • How to open XML file in Netscape

    How to open XML file in Netscape.....
    XML file is opening correctly in IE, but giving error in Netscape.Error is
    Error loading stylesheet: Parsing and XSLT stylesheet failed....
    Reply me soon..............

    You may check these tips:
    How to Access Local File Systems from J2ME devices using FileConnection API
    http://www.java-tips.org/content/view/109/73/
    Opening and reading a file on the mobile device
    http://www.java-tips.org/content/view/352/73/

  • TS4256 How to open .RAF files from Fuji camera?

    How to open .RAF files from Fuji camera in Aperture 3?

    Only these Fuji cameras are currently supported: http://www.apple.com/aperture/specs/raw.html
    Fujifilm
    FinePix S2 Pro
    FinePix S3 Pro
    FinePix S5 Pro
    FinePix X100**
    X-Pro1***
    X-A1***
    X-E1***
    X-E2***
    X-M1***
    X-T1***
    X20***
    X100S***
    If you have a different camera, use the software that came with your camera to develope the RAW files and convert them to a different lossless format, that Aperture recognizes.

  • How to open user file in Flex Application

    Hi forum,
    I develop flex2 application where user can browse and open
    XML file: the file should be loaded to text area.
    Could you, please, advice me how to browse and open user
    file?
    I found FileReference class but it looks that it can only
    upload file to a server. I need to open the file in flex
    application.
    Thanks for your help.
    Smoke007

    The issue isn't Flex, but the Flash Player. It is too much of
    a security risk to allow SWFs running in the Flash Player to open
    local files. Imagine going to a web site that has a SWF banner ad -
    but that banner ad opens local files and sends them to a remote
    system - all of your personal and financial information transfered
    without your consent.
    Flex apps running in the AIR player are different - the end
    user must launch them explicitly, just like any other local
    program.

  • How to open xml file in MIDP?

    Hi,
    I want to open xml file which stored localally, for reading and writing operation.
    Is it possible to open file in J2ME, if not possible is any other way to handle file operation. please guide me.
    Note: I want to open file which stored locally.

    You may check these tips:
    How to Access Local File Systems from J2ME devices using FileConnection API
    http://www.java-tips.org/content/view/109/73/
    Opening and reading a file on the mobile device
    http://www.java-tips.org/content/view/352/73/

  • Open local file using fileReference in AIR

    I just started to build an AIR application and am facing a
    very basic problem. I need a File->Open menu that pops up a file
    open dialog and returns the location (including folder) of a file
    to edit.
    - I tried the fileReference.browse() but this does not seem
    to provide the full path to the file
    - I tried fileReferenceList.browse() but the SELECT event
    does not fire on my Mac under (seem to be a bug reported last
    October:
    http://bugs.adobe.com/jira/browse/SDK-13220)
    Now, how can I achieve this in AIR? I assume opening local
    file is a pretty standard operation for desktop application, any
    suggestion/tip?
    thanks
    *P

    You don't want to use FileReference in AIR for what you are
    doing. Check the documentation for the mx.controls.FileSystemTree.
    There are actually a handful of AIR-specific controls for accessing
    the file system. There isn't a "File Open" dialog per se; you can
    build your own out of the controls given. I will say that the
    controls will have the flavor of the OS (so on a Mac the controls
    will behave similarly to the way a Mac accessses and browses for
    files).

  • How to open a file created at the server through form/report at client end

    How to open a file created at the server through form/report at client end
    Dear Sir/Madame,
    I am creating a exception report at the server-end using utl file utility. I want to display this report at the client end. A user doesn't have any access to server. Will u please write me the solution and oblige me.
    Thanks
    Rajesh Jain

    One way of doing this is to write a PL/SQL procedure that uses UTL_FILE to read the file and DBMS_OUTPUT to display the contents to the users.
    Cheers, APC

  • HT4796 I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    Send it as a PDF.

  • How to open CR2 files in photoshop elements 10

    Who knows how to open CR2-files from a Canon Powershot S100 in Photoshop Elements 10?

    Hi,
    The version of Camera Raw that you reported should support the S100 CR2 images.
    If you load the editor, go to the File menu and select Open, then point to the file, are you saying that it displays the error message?
    Have you tried opening the file with Canon's Zoombrowser?
    Which operating system are you running on?
    Brian

Maybe you are looking for

  • Web Clipping and a name tags

    Hi! I'm trying to use the webclipping portlet on some static html-pages, and it seems to work just greate, except one thing. The pages uses a lot of anchor-tag that refer to chaper down in the same html-file. You have kind of a chapter-listing in the

  • Word 2007 Corrupt Document Recovery

    Hi All, I might be a little off topic in this category but am hoping you can help or point me in the right direction, i have a corrupt .doc document, basically it was a doc i resumed working on which was launched off a usb hdd, midway through the doc

  • Renaming a SCRIPT??

    hi please tell how to rename a SCRIPT.I had developed an script,now i need to change its name,please tell how to do this. vipin sharma

  • System Sleep During iTunes Play

    Why doesn't iTunes override my system sleep settings when it's playing music? When iTunes plays videos, the computer stays awake regardless of sleep settings; why won't it stay awake when playing music?

  • My mail keeps crashing everytime I try to reply an email, its hotmail, please help

    My mail keeps crashing everytime I try to reply, what can I do?