Download file from web page...?

hi,
how would i enable users to doenload an excel file from my web page. i know it is something along the lines of:
<a href="records.xls"></a>
the records.xls is in the same directory as my html pages and still doesn't seem to wok. someone mentioned it may have something to do with the file being on my hard drive and needs to be placed on the network....make any sense?
please help me out if you have any ideas..i'm totally lost.
regards,
jeena

Below is the doGet method, which is called from another servlet, with all the html stuff. i've taken out some parts of the code since its of no relevance.
public void doGet(HttpServletRequest req, HttpServletResponse res)
                                   throws ServletException, IOException {
try{
     log (" ENTERED DOGET IN LECTURE!!!!");
          res.setContentType("text/html");
          PrintWriter out = res.getWriter();
Enumeration values = req.getParameterNames();
          //while(values.hasMoreElements()) {
               String name = (String)values.nextElement();
               String value = (req.getParameterValues(name)[0]);
if(name.compareTo("submit") != 0) {
if (value.equals("Enter/Edit")) {
out.println("<A HREF=records.xls>Download Attendance Records</A>");//TO DOWNLOAD FILE
     catch(SQLException e) {
          log (e.toString());
}

Similar Messages

  • I need an addon to extract music files from web pages like myspace.

    I'm running Firefox 23 on Ubuntu 12.04. I would like to be able to extract/download music files from web pages like MySpace. I searched through the addons but didn't find any. Is there and addon to download music from MySpace?

    There's a Search box at addons.mozilla.org which you can use. <br />
    [https://addons.mozilla.org/en-US/firefox/search/?q=MySpace+downloads&appver=23.0&platform=windows MySpace downloads addons search]
    The first one listed there says it works with MySpace.

  • Download files from web to client

    Hi,
    I am trying to download txt file from the web and save it on the client using webutil_file_transfer.url_to_client. I am experiencing some problem which is connected to web util and says: The WEBUTIL object group is not available in this Form. WEBUTIL can not work.WebUtil error: oracle.forms.webutil.filetransfer.filetransfer.
    Can somebodey suggest what is the problem or any other solution for downloading files from url and saving them on the client?

    OK guys, i have done everything and web util finally (probably) works fine because i don't receive any error messages. Despite this i still cant download the file on the client machine.
    ps. I don't receive any error message
    here is the sample code , so you can try it if you want and suggest something
    DECLARE
    flag BOOLEAN;
    BEGIN
    flag :=
    webutil_file_transfer.url_to_client
    ('http://igor.pandurski.googlepages.com/CIIT-Molika-2007-WebServicesforInsur.pdf',
    'C:\1\'
    IF flag
    THEN
    MESSAGE ('DONE');
    MESSAGE ('DONE');
    ELSE
    MESSAGE ('NOT DONE');
    MESSAGE ('NOT DONE');
    END IF;
    END;

  • Errors when downloading files from web sites

    I cannot download files from Firefox anymore on my home computer. I click on the download link and it takes me to another page that is blank. I can download just fine w/o any problems from my work computer, download box/window appears just fine. I'm using the same Windows 7, Firefox 8.0 program and same website that gives me the error message from my home computer. Is there a pop-up blocker, cookie or plug-in that I need to turn off/on? How do I enable downloads so I can save to my home computer?

    Clear cache and cookies and try again. Also, check your firewall permissions for Firefox 8

  • Link to files from web page

    I need to create an archive of newsletters that can be accessed from our web page. What I have in mind is a news page with a list of newsletter files by date and a link to the file so that they can open which ever one they want from the list. The newsletters are in Pages format and in PDF. They are about 6 to 10 megs each in good quality PDF but much larger in Pages. I have tried export to iWeb but teh file dos not open. I put a PDF version on my iDisk and created a hyper link to it and that sort of works -- takes a long time to open and since it is in blog page there is a bunch of previw stuff shown that I don't want. I'd guess there is an easy way to do this - but I can't sort it out and the help and tutorials don't cover this.

    Export your file from Pages as a PDF and ZIP it from Finder/Create archive.
    Create a link to each document on an iWeb page and, in the link inspector, choose link to a file and select a file. The link will not work in iWeb but, when clicked in the browser, will download the file to the viewer's desktop.

  • Cant download PDFs from Web pages  Adobe 9 reader,

    Hi there , i have Adobe Reader 9 installed, which reads PDF files Ok from my hard drive and when saved from
    Emails. but when i try and save a PDF from a web page it try's to open Acrobat and asks me to login. I have removed  Acrobat, but still cant download a PDF, Has anybody experienced this and have a resolution. Cheers 

    If you removed Acrobat, you must re-install Reader.

  • Download file from web problem

    Hello,
    I want to download image files from my webserver to the local machine.
    The source is: http://www.mysite.com/files/myfile.gifThe destination is: c:\I made the code below, but I always got File Not Found Error
       URL srcUrl = new URL(src);
       FileInputStream fi = new FileInputStream(srcUrl.getFile());
       URL dstUrl = new URL(dst);
       FileOutputStream fo = new FileOutputStream(dstUrl.getFile());It seems that the getFile() function removes the "http://www.mysite.com" from the complete URL.
    Any idea?
    Thanks

    By the way, if a method doesn't behave like you think it does, then it might be time to go and read it's documentation. Because omitting the host information is exactly what it says it will do.

  • Dragging files from web pages to the desktop (To a specific spot!)

    I often need to drag images or url links directly from Safari or Firefox to my desktop.
    I have a two monitor setup and usually have a bunch of windows or applications open. Whenever I drag a file from the browser to the desktop, it gets sorted in the right monitor with the sorted icons...
    ...is there a way to force Mac to let me just drop the file where I drop it?
    I don't have any "arrange by" option selected in my Finder View Dropdown...
    Thanks for any help!

    Not that I know of... I have the same issue with the dual monitor setup and trying to drag from or to the desktop. Gets so cluttered sometimes that I have to hit F11 just to see what's going on, but then I'm not able to drag from the desktop to an open app because all of the windows are off the screen.
    Hmmm...
    I think OS X just puts all of your desktop items on the right edge of your default display no matter what, but I'd love to be proven wrong. Will keep an eye on this thread.
    I think the new "Spaces" feature in Leopard might help this situation. Maybe.

  • Can't open pdf files from web pages

    I recently upgraded to Adobe Reader 8.1. Now I cannot open pdf files from email attachments. Advises to set Adobe Reader as default in folder options. When I try to do so, it appears to be OK, but still will not open files from emails.

    [email protected] wrote:
    > I recently upgraded to Adobe Reader 8.1. Now I cannot open pdf
    > files from email attachments. Advises to set Adobe Reader as
    > default in folder options. When I try to do so, it appears to be
    > OK, but still will not open files from emails.
    Did you check the settings of your mail client for handling attachments?
    Rainald

  • User download files from web site

    I have files I want to allow users to download from my site.
    Problem is that I just don't know how to do that. And does
    Dreamweaver make that it possible?

    Deja vu all over again...
    To force a download without using Zip files, you will need to
    run a server
    side script - the flavor depends on which programming
    languages your server
    supports.
    This one uses php.
    http://elouai.com/force-download.php
    Otherwise, search www.HotScripts.com for other Forced
    Download scripts that
    will work on your server.
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "calc guy" <[email protected]> wrote in
    message
    news:f9nib8$mlt$[email protected]..
    > I have files I want to allow users to download from my
    site. Problem is
    that I just don't know how to do that. And does Dreamweaver
    make that it
    possible?

  • Trial question:  Can't open .doc files from web page

    I'm using Dreamweaver on a Mac, and I have a link on a page
    that should bring up a doc file. When I preview the page in Safari,
    it brings up a directory listing which highlights the file so that
    you can double-click and open the file. (Of course, I'd love for it
    to go ahead and open the file, but my understanding is that
    Dreamweaver Mac doesn't support that.) However, when I preview in
    Internet Explorer, I either get a message that the File is Not
    Found or it just spins and never brings up anything. The file is in
    the root directory of my site (same directory as my index.html.
    Any ideas?
    Thanks!
    Kim

    Do you have Word installed on your Mac? If you don't, it
    won't open.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "kshorb" <[email protected]> wrote in
    message
    news:eenckl$h3a$[email protected]..
    >I used code similar to that below, but the .doc file
    never opened in IE. I
    >did
    > find, however, if I link to a .pdf it works just fine.
    So I just went
    > ahead
    > and converted my .doc to a .pdf and changed the href.
    Maybe it's
    > something
    > specific to my computer... Thanks.
    >
    > <a href="yourdoc.doc">Click here to open Word Doc
    > </a>
    >

  • Cannot download files from web sites using 4.0, and slower. Do I need to prep my Mac in any way prior to installing 4.0?

    I use browser to grab small game programs off various websites, which then run on apps I have installed. When I attempt to download these files in version 4, I get an "unknown error has occurred" pop-up, & no file. This has not been an issue w/previous version.
    Am I required to change any system prefs after installing 4.0? I have de-installed and gone back to previous system until I know what the issue is... odd, all other upgrade installs have been easy and simple.
    4.0 also runs notably slower.
    thx/ASAubry

    I use browser to grab small game programs off various websites, which then run on apps I have installed. When I attempt to download these files in version 4, I get an "unknown error has occurred" pop-up, & no file. This has not been an issue w/previous version.
    Am I required to change any system prefs after installing 4.0? I have de-installed and gone back to previous system until I know what the issue is... odd, all other upgrade installs have been easy and simple.
    4.0 also runs notably slower.
    thx/ASAubry

  • Can't download Silvelight from web page

    Hey.
    Is the download server for Silverlight 5 down?
    When I click the download button the pop-up window times out, and I can't download.
    The pop-up window sends me to http://silverlight.dlservice.microsoft.com/download/F/8/C/F8C0EACB-92D0-4722-9B18-965DD2A681E9/30514.00/Silverlight_x64.exe but nothing happens. It's been like this for about 12 hours now.
    I've tried restarting the computer. Tried opening with firefox and explorer browsers, and tried turning off my firewall but nothing seems to help.
    Is this a problem on my end or yours?

    Hi,
    I suggest you download the silverlight in the offical website.
    http://www.microsoft.com/getsilverlight/get-started/install/default.aspx?reason=unsupportedplatform
    Besides, check the internet connection if it is too slow.
    If you need any further assistance,please feel free to let me know.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Since upgrading to FF 7.0.1 I can no longer view .pdf files from web pages and there is no plug in..

    The .pdf viewer plug in for FF3.6 worked fine but upgrading to FF7.0.1 has caused the problem. There are no such plugins for this version. I must go back to FF3.6 with the plugin and then if one for FF7.0.1 doesn;t exist by the time Mozilla stops supporting 3.6 I will go back to Safari as my browser I guess.

    I already reinstalled the Adobe's and it didn't solve anything. What I did find is that when faced with a pdf I want to view, I have to right click "Save Link As..." and then I can view the resultant pdf. Cumbersome perhaps but I guess it works.
    Thanks though for the snotty tone in your response; indeed I realize its not FF's job to ensure my machine is updated. However I'm a business guy not an IT guy and my guess is the business guys at Mozilla would want to be aware of things that would impact the use of their product. And if moving forward with new iterations and updated versions of their product changed the users experience in a negative fashion, however caused, I'm sure they would want to consider what actions they may or may not want to take.
    Furthermore its unfortunate that you mistakenly interpreted my words to mean that I expected them to rectify the issue for me. I simply stated that currently it doesn't work for me and if that doesn't change, I would have to move in a different direction. Simple as that. It's not a big deal.
    So perhaps your typical IT guy "users are so dumb" mantra was misplaced here.

  • Where are files downloaded to on the mac when creating a pdf from web pages?

    where on the mac HD are files downloaded to  when creating a pdf from web pages?
    Im creating web pages from the whole site so creating a large document, so wondered where these fiels are stored on the mac so I can delete when finished as dont want to clog up the hard drive.

    Look at the LiveCycle server products.

Maybe you are looking for

  • How to justify the values in table using report generation tool kit

    Hi How can we align the values in excel table using report generation toolkit. like left,right,center. Regards, hari Attachments: Report_excel.vi ‏34 KB New Bitmap Image.JPG ‏134 KB

  • Why can't I right-click and set desktop picture?

    Greetings. I am having a lot of trouble changing my desktop picture. From what I understand, you right-click the image and click on 'set as desktop picture'. I click it and nothing changes. I have tried to download the image and set it manually throu

  • Maintenance Orders

    hi When i am setling the plant maintenance orders. A controling document is being posted, i think this is not correct. please explain whats is wrong. I have one activity type MAINT which is being used by Product cost collector and Maintenance orders.

  • Screen help

    How do I make my screen light up when my phone gets a call or messege

  • Please delete the email address in icloud it is wrong

    the email address in icloud is wrong and cannot delete it on my ipad