How do i save the file to a perticular location ??

HI
I am having code which generates a new file & will saved in to tomcat's
tomcat\webapps\ROOT\charts\barchart.jprg......directory...
Now i want that .jpeg file...how can i have it with out giving absolute path ?? can we use getContextPath ?? but it is giving me nothing....
can anyone help me ???
Thanks & Regards
Amit Kulkarni

Post this query in the JSP/Servlets heading....Actually, he's not supposed to use direct File IO in
a servlet environment at all.Really? Well, I've heard of that requirement, but I've been searching for it and didn't find it. The J2EE specification even mentions that Web-Applications can count on having read/write permissions on the filesystem (not everywhere, 'though). I've only found the restriction for EJBs. They must not access non-transactional resources (such as file), but I've found nothing that prevents a servlet from doing File I/O. Anyone care to enlighten me? Preferably with a link to the correct specification.

Similar Messages

  • Good day! When saving a file in Illustrator, I can not keep the older version. How You can save the file in an older version?

    Good day! When saving a file in Illustrator, I can not keep the older version. How You can save the file in an older version?

    When you save a file that's what options offers application
    05 мая 2014 г., в 13:40, Jacob Bugge <[email protected]> написал(а):
    sage go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click theStop Email Notifications link.

  • I can round edges of an object but how to I save the file and the logo will have rounded edges?

    Rounding edges of objects is easy but how to you save the file to have rounded edges?

    mercedesattig,
    If you round edges of objects, they should be rounded when you save the document, and when you open it again.

  • How do I save the file after I have converted it from pdf to word

    HOW DO I SAVE A FILE AFTER I HAVE CONVERTED IT FROM PDF TO WORD

    Hi,
    After converting your file a box will appear on top of the window showing 'Download' option.
    When click on that your file will be downloaded and it will show the notification at the bottom.
    Click on arrow -> 'Show In Folder'.
    It will direct you to the location where your file has saved.
    Regards,
    Florence

  • How do i save the files during home sharing

    ok, here goes. i am in now way shape or form a tech boff so i guess all i can do is attempt to expalin my issue..
    i have recently gotten a new pc and i am wanting to use the home sharing function to some what transfur my music library from my laptop (where i originally set up my iphone 3gs) to my new pc. so far i have sucessfully set up the home sharing link between the 2 and i am fully able to look at the laptop library from the new pc, however i have no idea how to save the music so i can then re-sync my iphone to the new pc as the laptop is way out of date and struggles with the most basic things.
    so, i looked on youtube in an attempt to figure it out and ended up frustrated, there are many mentions of a settings button which should be located at the right hand bottom corner, i dont have that. there is mention of dragging and dropping the files i want from the home sharing into my new pc itunes that doesnt work. i have tried to create a new playlist with the home sharing from the laptop, that doesnt work. so here i am, willing for an answer as to if im doing something wrong or if what im wanting to do isnt possible..
    thank you

    1. Enable Home Sharing on both systems
    2. Open iTunes on both of them
    3. iTunes on the desktop should list your laptop's library by now, if all goes well
    4. Browse your laptops music labrary, select, and click "import" located on the bottom right hand corner.
    I borrowed this image from the web https://img.skitch.com/20110812-ntquew6be33xuhb9685rx1b5it.jpg

  • World's easiest Acrobat 9 Pro question: how do I save the file & bookmark order of source?

    I am creating a PDF from a bunch of HTML files.
    Each time I do so I have to order the files in the Create PDF dialog.
    When I make minor changes to the file order I have to recreate the file list again.
    I would like a way to save the order of the input source files separate from the PDF itself, sort of like Premiere's nondestructive editing feature that lets you order film clips, then render the film from the original clips.
    Similarly I would like to "render" a PDF file from a list of source files & bookmarks, and edit that list from time to time.
    How can I save a description of the document with the source files and preferably the bookmarks in order, so I can just edit the file list each time I create the PDF?

    There is a suggestion on how to create a list of files at the following URL:
    http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=15372
    Once you have your master list of files in PDF you can use the replace pages command to save all your bookmarks.
    Also, you'll find quite a few sample batch sequences dealing with bookmarks at:
    http://www.adobe.com/devnet/acrobat/pdfs/batch_sequences.pdf

  • While importing, how do I save the file name with the artist in it?

    Currently when Itunes imports any cd, it imports it with the song name only, and put it in a folder with the artist name. I would prefer the tracks to be named 'Artist - Song.mp3'.
    Any idea how I can do this? It's driving me crazy. I need to rename all the imports with the artist on the file name.
    Thank you!
    I have itunes 6

    Anyone have any suggestions for this problem? I have the same issue. I have iTunes for Windows, so Doug's AppleScripts for iTunes is not an option.

  • Printer software says there is no room in downloads folder and to install in another location. How do I direct the file to an alternative location?

    I am trying to reinstall my epson printer driver after reinstalling my operating system. The download will not complete and I get this message that the download cannot be saved because of an "unknown error," and to try to save the download in another location. How do I find another location?

    Hi, clintonfrombirmingham: I wanted to thank you for jumping in and attempting to help me. I went back to the apple store yesterday and the space issue was caused by a setting from five years ago that was saving all mail in the hard drive in the apple mail application. Once all of that mail was deleted and the setting changed I was able to reinstall the printer driver and other things that would not function properly. Now my only issue is that the printer will not connect wirelesslessly. But I'm going to work on that at another time.

  • How can I save the file to lower vers(CS5)?

    I am using flash professional cc 2014 and I want to downgrade the version to CS5.
    Would you please let me know how I can do?
    I have to do.... plz help me!

    In my country, offer to drive to a service center. I want to do it myself.

  • How do I save a file to a specific location?

    I have a subfolder where I would like to save certain documents. When I click File/Save As, and click the little arrow next to the default "Desktop" location, there is no way to get to the subfolder. There's a list of "Recent Places," but it doesn't show up there either.
    Any suggestions?
    Thanks,
    Barbara

    Barbara,
    Welcome to Apple discussions.
    With that little arrow pointed upward, you should see hard drives and folders in the left column. (See photo below.) Click on the drive where your folder resides, and navigate to it.
    Let us know if you still need help.
    -Dennis

  • How do I save a file after getting an error in CS5?

    I was working on Adobe Photoshop CS5 on my 64bit Windows 7 when I got the following message:
    Adobe Photoshop CS5 has stopped working
    A problem caused the program to stop working correctly. Windows will close the program and notify you if the solution is available.
    How do a save the file before the program needs to close?
    Can I just close the Windows pop-up displaying the error, or will that also close the program?
    I have not saved the file in a while and I don't want to lose all the work I have done.
    Please help!

    By the time you see that error message, it is already too late.  Photoshop has already crashed.
    That's why the Auto Save feature in CS6 is so attractive,

  • How do I save a file without embedding a movie?

    I have unchecked "Copy audio and movie into document" in the prefs yet the movies are being saved with the file. Quit and restart, start the file from scratch, it doesn't matter. The file always saves with the movie. Is it me? Or is it a bug? And how do I save the files so that the movies are just a link inside the document?
    Thanks in advance for any help anyone might have here

    The saving of one file is not the function of TC.
    http://www.apple.com/timecapsule/backup.html
    Have a look here...
    ..Most commonly used backup methods

  • Saving the file to a particular location!!!

    Hi,
          I have to upload a file and the file uploaded should be saved to aparticular location. For Example if i upload a file named 'eg.jpeg.' , how can i save this file to a particular location in the system?
    Regards,
    Shiny

    Hi,
    If you just want to display it within the same BSP application, try this:
    <htmlb:image src="eg.jpg" />
    If you want to retrieve the image from a non BSP application, I think you should look at logical files and paths (transaction AL11).
    Regards,
    Tanguy

  • How do I save PDF files by default to the folder of the source file?

    How do I save PDF files by default to the folder of the source file with Acrobat 9.0.0 Standard?

    I am not seeing that behaviour. If I right-click a link to a .pdf file, I get the file saved with the original filename.
    Maybe one of the settings in about:config controls that?
    pdfjs.previousHandler.preferredAction is a setting that has a value of 4 with my setup. I have no idea what that means, and I could not find any explanation anywhere. You could try using different numbers for that value and see if any make any difference. Why has nobody bothered to explain that setting anywhere?

  • How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    Hi
    Please take a look to this thread Re: Can I refresh the browser rather than open a new tab?

Maybe you are looking for

  • How to print directly to printer using USB and Bluetooth from Java (J2ME) app.

    I write mobile phone apps in Java (J2ME). I want to print directly to a printer via USB and via Bluetooth. I cannot use a print job with the Java available to me. Once upon a time you could just send text and print control characters to a printer. I

  • Blank Tip of the day window

    Hi all, We have an odd happening in one of our video labs here at work.  When launching AE CS3 (ver 8 i believe?) the tip of the day window pops up after the program launches, but it's blank.  This happens on all but one of the machines in the lab. 

  • Posting in a non leading leadger with an open item G/L Accounts

    Dear all, Iu2019m facing the following problem. Iu2019ve a document posted in a non-leading ledger with a openu2013item G/L account. I taught that this kind of posting is not permitted by SAP-standard. Is that so? The management of G/L Account was ne

  • Exception in thread "AWT-Event Queue 0" Mem Out of Bounds. Java Heap Space

    Hello, I'm not sure how to resolve this Java Heap Space Memory Out of Bounds error. Could someone please assist me with this error? A SCENARIO: I am reading in tons of data from 5 separate text files. The files have tons of rows (up to 64,220 in one)

  • Disable Lightroom 4 video support option?

    Hi, Is there a way to disable lightroom 4 from importing or processing any file with a video extension mkv, 3gpp etc, as its really slowing down my workflow. My typically workflow consists of pulling my files off of my memory carsd manually via explo