Save as Feature in Web page ( JSP)

Hi,
I want the user to be able to save some data on the browser machine.
I have a button Save as on the page. When User clicks that a file selector dialog pops up with a default file name. User can select the directory and file name and save it. The server program is in JSP. How do I do it? I am able to file selector dialog by setting content type as undefined or CSV.
But I am not able to give a default file name. Please help.
Regards,
Sanjay

buddy...
try this ..it'll help u to set the file name in the save as dialog box...
response.setHeader("Content-Disposition","attachment;filename=filename.extension");
for ex...
filename.extension = Gates.xls

Similar Messages

  • Can we implement Blogs feature in Web Page Composer

    Hi Experts,
    We are newly implementing Web Page Composer.
    any body could you please let me know the what exactly web page composer do and its key capabiliites.
    Is it possible to implement Blogs feature in Web Page Compoers
    If yes please let me know how
    if no please let me know how to over come this.
    Thanks
    Mukesh

    hi buddy
    take a look at this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90347add-ad06-2a10-81a0-e613acff5236
    and also browse through the home page for wpc
    https://www.sdn.sap.com/irj/sdn/nw-cm?rid=/webcontent/uuid/40321b10-8c42-2a10-3b89-9f67c9ff6065
    http://help.sap.com/saphelp_nw70/helpdata/EN/46/8401ab8f0c6cd2e10000000a1553f6/frameset.htm
    thanks,
    GLM

  • Save youtube videos and web pages

    9650 verizon, os 6. Need to be able to save videos web pages. Zero...repeat zero...access to a real computer, so I need to find programs to download directly to my device to enable this.

    hereticalhermit wrote:
    That makes the device then not much more than an expensive toy. It is my understanding that previous blackberries have had this capability
    As far as I know you can :
    download a video file that the web server allows you to download
    stream a video file from Youtube or any other RSTP server using cellular network or Wi-Fi
    download an audio file that the web server allows you to download using cellular network or Wi-Fi
    stream an audio file from any RSTP or shoutcast server using cellular network or Wi-Fi
    upload videos or audio files from a computer using Bluetooth or USB or Wi-Fi
    upload HTML files to your BlackBerry from a computer using Bluetooth or USB or Wi-Fi
    bookmark a webpage
    but those are not the features you are looking for (at all).
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • How do I save or export my web pages as PDF files?

    I'm trying to save or export web pages from my Firefox that I'm using on Windows Vista as PDF files. There isn't an option for this nor any information in your help files on this. Thanks for your time and I look forward to a response.
    == This happened ==
    Just once or twice
    == I tried to save a page as PDF today, June 29, 2010

    Actually, you should right-click on the collection and choose the command Export This Collection As Catalog (and check the box next to Include Negatives). This will create a new catalog and you can move this and the photos thus created to the 2nd computer and then in Lightroom on the 2nd computer use File->Import from Another catalog

  • How can I save a previously published web page off-line instead of deleting

    I have some web pages with photos I do not want to post anymore on my iWeb site. However, I do not want to "delete" the pages because I spent so much time putting them together. Is there a way to save them off-line somewhere for access later on? I am a Scoutmaster and post photo pages of our hikes and adventures. I prefer to save my "masterpiece" pages somewhere for future reference instead of deleting them, which is the only option, to make room for more pages.
    Thank you so much for assisting me.
    p.s. Is there a number limit to the amount of photos I can drag over from iPhoto to an iWeb photo page?
    iMac, Powerbook G4, MacBook Pro   Mac OS X (10.4.10)   Love Macs. I've owned a Mac since the 128 in 1984.

    See this article: "Separating Sites in a single Domain"...
    http://web.mac.com/mark8heaton/iWeb/DomainSeparation/SiteSeparation.html
    iWeb's Help viewer says: "The photo grid holds up to 99 photos." But you can have multiple Photos pages and create a living, growing photo gallery...
    http://www.mac.com/web/en/Tips/013C4180-4787-4847-BAAB-319222AFC652.html

  • Save photos from a web page

    Hello everybody:
    I'd like to save a photograph taken from a web page as a jpg file. I have written the following application, but It doesn�t work.
    public static void main(String[] args) {
    try {
    URL url = new URL ("http://ia.imdb.com/media/imdb/01/I/68/65/38m.jpg");
    URLConnection connection = url.openConnection();
    DataInputStream inStream = new DataInputStream(connection.getInputStream());
    String inputLine;
    File outFile = new File("fotoTomHanks.jpg");
    PrintWriter outStream = new PrintWriter(new FileWriter(outFile));
    while ((inputLine=inStream.readLine())!=null) {
         outStream.println(inputLine);
    inStream.close();
    outStream.close();
    } catch (MalformedURLException me) {
    System.err.println("MalformedURLException: " + me);
    } catch (IOException ioe) {
    System.err.println("IOException: " + ioe);
    I think I'm not using the correct streams or writers because I'm doing the same i would do if I'd like to save a string in a txt file, but I don�t know how I should do it.
    Thank you in antitipation for your help.

    Repeat after me:
    Readers/writers are for text data.
    Streams are for binnary data.
    JPEGs don't have text lines.To further expound:
    *A low-level stream receives and writes bytes.
    *A high-level filter stream typically receives and writes primitive types such as doubles, ints, or UTF.
    *Readers and writers can be thought of as specialized filter streams for reading and writing units of Unicode characters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Calling Oracle Reports from WEB Pages(JSP)

    We are using Weblogic as the web server, Oracle 8i as the database and JSP(Java Server Pages) as the scripting language.
    We need reports to be invoked and displayed to the browser. Is it possible to invoke Oracle Reports 6i reports from JSP WEB pages and display the output to the browser? How can we do this and what are the additional s/w requirements, if any?
    null

    yes it is possible. There is a cgi script called viewreport.cgi. Have the jsp page call it (GET or POST method) and place the user parameters inside the form.

  • Firefox crashes when printing (save as .pdf) certain web pages

    Sometimes, the problem can be overcome by selecting "Preview" from the print dialog box, which composes the page in Preview, from which the file can be saved as .pdf. My solution to this problem is to quit using Firefox and go back to Safari.

    Go to the address '''about:crashes''' and tell us your latest crash IDs. We can then look at the data specific to your crash and have a better idea of what is causing the problem.

  • Why does my macpro save screenshots of every web page I visit in Iphoto?

    Trying to figure out why my macpro saves screenshots of every webpage I visit in Iphoto and how do I turn it off?

    I have found that in the extensions of the browser there is something called yealt class. When I removed it from Chrome the issue went away. I am having difficulty removing it from IE but this should resolve the issue you mentioned.

  • When I open a pdf the save is always as a web page only. I cant save as pdfs but I have Adobe Reader

    I can open a pdf from a website but when I click on save as it only lets me save it as a 'web page complete'....I cannot therefore save a pdf as a pdf, even though I have adobe reader.

    Firefox has it's own built-in PDF viewer now, so it must be an issue with the Adobe PDF plugin.

  • Firefox v. 30 won't save a page as "Web page, complete" -- NEVER

    I tried to save a page as "Web page, complete" in v. 30. It used to work in v. 29. Now it never saves the original. It used to say in the Downloads list, when I did save a file, that it failed. I learned to ignore that, because the first time I would save a file, as "web page, complete," it did get listed in Windows explorer and I could open it up in Firefox and see it, looking close to the same way I saw it originally (some words are on a new line, and images are smaller).
    It is most critical when I want to save a list of the journal articles I download, along with images of the check off boxes having a check mark. In v. 29, they were there. If I saved the saved page again, after checking off more boxes, it wouldn't save it but it wouldn't tell me so, either. I would have to always keep an eye on the directory listing in Windows Explorer. I learned to just save it again, and it would be saved. However, now in v. 30 it NEVER saves the main htm page of this ORIGINAL web page when I save it with the option "web page, complete," but it does save the "_files" folder for ancillary images. I now have to save the original web page as file type: "files, all," putting in the .htm as file extension. I then open it up in firefox, and none of the boxes are checked as they were in the original. So I have to recheck all the boxes again and then save it as "web page, complete". This time, the "web page, complete" works, but clearly not on the original web page. The resulting file looks like the page that got saved with the "files,all" option I saved before, but now the boxes I checked off are still checked off. I get the web page back, but not looking much like it was originally, and only after a great deal of work.
    I am using Firefox 30 on XP

    I appreciate your thought on this problem. Yes, all journal database searches use the same algorithm but there is something in common to all which is not present in many other kinds of web pages, e.g. PubMed abstracts or pages with just an abstract, or blog posts or news stories -- the boxes to check off (e.g. to list all abstracts and citations for the ones you choose) and the listings of links to abstracts, pdfs, supplements, etc. posted with each article description (see searches by Oxford University Press http://rspb.royalsocietypublishing.org/search and by Sage http://online.sagepub.com/search ). The links and empty check boxes get printed on the "save page" result, but any check boxes you checked off lose the check after saving the page as a "Web page, complete."
    That was not the case in v. 29. In most of the past Firefox versions, the resulting page saved does not look like the original one, because of the realignment of text and links. However, now, the functionality of those saved pages is seriously compromise. Worse, there are no images. I could tolerate what v. 29 did, but not what 30 is doing.
    I just found out that although the downloads tool window list of titles that appears after you tried to save a page always lists the attempt as having "Failed", you can succeed in completing some files when you click on its name in the list. Usually, as I said in the past, you just try again and it saved in version pre-28 (I think). But as I mentioned before you can't trust what the downloads tool tells you. In the past it actually finally, after another attempt, saved the page despite telling you it failed in that window. I click on the "failed" download now and it does download, but is missing any of the list of articles found on the original web page, so certainly, the result is not what you were aiming for with the "Save", "Web page, complete" choice. The main point here is that there are no check boxes, empty or filled at all in an attempt to use "Web page, complete" option in the "Save" choice for any journal database search. I can only conclude that "Web page, complete" doesn't work for journal article searches.
    The main reason for keeping a web page functionality in a "save web page" option is to be able to work on it offline. I can copy the information about specific articles I downloaded to enter into my own Reference Manager program, along with the relevant links. I can carry this web page with me to a university where I can download the article without having to run a search all over again, with the strong possibility that it won't give me all the same results as I just got at home, losing some articles I really wanted to get. Saving a web page tells me what I was interested in to begin with, which gets lost if the boxes I checked off are not in what I can save.

  • How do I view a saved web page?

    I saved a web page by clicking on File; Save Page as; and then saving it as a web page. This created a folder, which contained a large number of files, but when I try to open the folder, it simply opens the folder in Windows Explorer, and does not bring the saved web page up in Firefox.
    Am I doing something wrong?
    I installed the "Read it Later" plugin and it seems to work, but I would prefer to be able to save and view the web page directly with Firefox.

    I do not use Windows 7 or the "Read it later" plugin, but will add a general comment.
    The web page you save is likely to consist of a folder of many files and a main file with the extension .htm or html. the .htm or .html file is the one you need to open with a browser. I imagine if firefox is your default browser such files will show as a firefox icon. I also imagine that it is possible to set Windows 7 to specifically show file extensions, that is to show the .htm or .html part of the filename.

  • Make a web page

    I make a web page on word then save it as a web page, and it won't open on Safari, I'm not even sure if I do it a differant way.

    I don't have firefox of any other browser,
    Then download one, you will need it.
    http://www.mozilla.com/en-US/firefox/all.html
    and it didn't end in html it was htm.
    Then rename it so it ends in .html and try again.

  • MS Word Special characters in web pages

    I am running into an issue when I paste text from MS Word documents into web pages (JSP) forms.
    Characters like dashes paste. Then the form is submitted and when later retrieved and prepopulated from the DB, they come out garbled.
    The database accepts UTF-8 encoding, and I changed the charset on the JSP's to use UTF-8 encoding, but none of this helped.
    Could anyone suggest where else can I look for the problem?
    Thanks.

    Thanks,
    I am reading your article and attempting to implement the changes...
    I am trying to understand something - my system is Vista, whose default encoding is Cp1252. Must I change it to UTF-8 as well, or is it sufficient to force UTF-8 in my application?

  • Pdf documents not added on web pages

    Hi!
    I've got problems adding pdf documents in iWeb.
    I'm doing it the way I've always done it:
    I insert some text (or a picture) and activate a hyperlink (linking it to a pdf document). I then save and upload the web pages via ftp to my webhost.
    This has always worked in the past.
    However, now, when I visit the website and click the link to the pdf document I just get a 404-message saying the requested file can't be found on the server.
    Any suggestions?
    Thanks!
    //Oscar

    Have you tried publishing you site to a local folder and launching it in the browser by double clicking the index.html file to see if the link works in this version of your site?
    Doing this will let you know if the problem is in iWeb or with FTP. If the local version works then the problem is with FTP. If not then you need to troubleshoot iWeb.
    Its better to use a hyphen instead of a space in a URL.

Maybe you are looking for

  • 10.3.9 Software not working,

    hi there, the problem I've run into is that all of the OS programs (Mail, Safari, Calculator, Calendar, Mac Help, Software Update...etc.) don't want to work. They all just freeze up. All other programs that I'm running are working fine, (IE, Adobe Su

  • Need some URGENT help with 3 DVD mastering issues PLEASE! :

    Hi there, Firstly, I am running DVD SP 3.0.2 on Mac OS 10.4.7 on a G5 Dual 2 GHz 3Gb Ram plenty of HD space... I am creating a DVD with: An intro sequence, a main menu, 4 sub menus, and 4 sections with around 12 chapters each. I am having some big pr

  • Can't install a new version of iTunes

    I upragded my iPod, but now I can't install a new version of iTunes. Always when I'm trying to install it, it says I should write somekind of iTunes.msi path. So what should I do? And sorry about my bad english

  • Problem with output type--urgent

    Hi experts,   My requirement is i need to post a vendor lkiability. For that we create a output type 'ZALV'. We also created a report program . In nace we attached the program and output type with medium '8'. we call the same subroutine Entry which a

  • Mac OSX Lion download

    I have bought and downloaded OSX Lion on my macbook air, and I love iit, but I want to download it onto my iMac. Is it possible to download Lion to just one account and have Snow Leopard on another on the same computer? Thanks!