Is it possible to clear the outputStream of a HttpServletRespons object?

Hi!
Is it possible to clear the outputStream of a HttpServletRespons object?
I set the content type of my responsobject and also addheader:
p_res.setContentType( "application/x-zip-compressed" );
p_res.addHeader("Content-Disposition","inline; filename="someName'"');
Later on i take the outputStream to write back a zipped xmlfile, but if anything goes wrong i don't want a zipfile just an xml-file saying something has gone wrong, but then the contentType of the responseobject is already set.
/Linda

Hi Linda,
As of Servlet API version 2.2 it is possible using something called Response buffering. A few new methods have been added to the ServletResponse class. One of them reset() can be used to empty the buffer and unset the headers.
I have no idea which or how many servers support this specification. You will find more information on this at this site.
Enjoy Java.

Similar Messages

  • Is it possible to clear the entire Bookmarks list at one time in Safari for Windows?

    Hello. Is it possible to clear the entire Bookmarks list at one time in Safari for Windows? I would like to continue to use the Safari browser even though I have Windows 7 as the operating system on my notebook. When I try to delete bookmark entries one at a time, after deleting several, errors start popping up in the browser. Can I reinstall Safari without the Bookmarks I've built up? Please help a humbled Safari user.

    Are you sure that you can change the permissions of symlinks themselves? I think I've tried to make files read-only via symlinks on a local server but ended up using bindfs because it wasn't possible. Even if you can, symlinking everything that might be necessary for a given environment would not be ideal, plus I don't think symlinks can be used across different filesystems.
    If a real-life human can figure out if it's he/she is in a chroot and break out of it, then he/she can write a script to do the same. I want a sandbox that could run malicious code with no effect on the system (if that's possible). Also, I think if the chroot idea were truly feasible, makepkg would have been using it for years already to simply install packages in the chroot as you normally would and then package them. There would also be several sandbox applications that could run applications safely. So far I have yet to find any.
    I admit that I haven't looked into using a chroot in detail though and of course I may have missed some application which creates such a setup. Right now I think using per-application namespaces with fuse seems the most promising but I won't know until I've finished implementing a test application. If it turns out that it's a dead end I'll take harder look at chroot but it really doesn't seem to be able to do what I want.

  • Is it possible to clear the RECENTS list?  If so, how?

    Is it possible to clear the RECENTS list?  If so, how?

    No, in the current release i.e. 11.2.0 there is no way to clear the Recents list.
    Thanks,
    Ankit
    Adobe Reader Team

  • Is it possible to clear the forgotten devices in the blue tooth list?

    Hello, First post here. I have been trying to get my Iphone linked to my PC for two days and best I can tell I made a mistake on my initial attempt to connect the two.
    I was on a sketchy wireless connection at the time with my PC and when the iphone connected via bluetooth the net connection tanked while it was searching for the drivers. I let the two sit for a long time. After that I canceled the process. On the second attempt it seemed that the iphone thought it was connected yet it wasnt. The mistake I think I made is I deleted the bluetooth device from my PC and in trying to delete my PC from the phone I clicked "forget" (or ignore) this device.
    Now when I try to connect the two, the phone shows up in my blue tooth on the PC but the PC never shows in the phone. Needless to say, no connection.
    Is there a way to clear this list? Or a way to reset and start from scratch with the phone?
    Any input appreciated.
    Mark

    Hi Sarah,
    This'll be an issue on all your deployments that you have set to: "Display in Software Center and show all notifications." This was really annoying to me so I went through and ran a SQL query to find all the "Available" deployments without
    deadlines and set them to "Display in Software Center, and only show notifications for computer restarts". I also set all the ones that were Required and did have deadlines to "Display in Software Center and show all notifications."
    Here's my query I used to find them:
    SELECT [AssignmentName]
    ,[CollectionName]
    ,[NotifyUser]
    ,[EnforcementDeadline]
    ,CASE
    WHEN NotifyUser='0' AND EnforcementDeadline Is Not Null THEN 'SetToNotify'
    WHEN NotifyUser='1' AND EnforcementDeadline Is Null THEN 'DisableNotification'
    ELSE 'OK'
    END AS [NotifcationStatus]
    FROM [vSMS_AssignmentBase]
    WHERE (NotifyUser='0' AND EnforcementDeadline Is Not Null) OR (NotifyUser='1' AND EnforcementDeadline Is Null)

  • Is it possible to clear the "purchase" page?

    I have the Purchase page full of APPs fr.o.m. Years ago, ( got them on my iPod).
    Can I and if, how do I do it?
    Thank you

    Currently you can't, it's a record of your purchases/downloads and is used to allow you to re-download for free : http://www.apple.com/feedback/ipad.html

  • Is it possible to create the memory for a Java object in C/C++?

    Is it possible to have a C/C++ program allocate some memory, then have JNI use that memory for primitive java objects (such an array of bytes) that are passed to Java objects ?
    I would like to allocate a region of memory in C++, then give that memory to a Java object (via some kind of JNI type) and have that Java object fill the memory region with data.
    My impression from reading the JNI API and the few examples I've looked at is "No", there is a strict boundary between C++ and JNI as regards memory management. There may be serious implications as to why what I'm suggesting is not feasible, I am not enough of a JNI expert to know yet, and would greatly appreciate any input/comment.
    Many thanks,
    Colm.

    No, you cannot. However, writing your JNI code you should not use memory of Local Heap (if it possible). Because Local Heap Memory used also by JVM. I have developed tools that generate C++ wrappers for JNI code. In these wrappers I use mainly Global/Virtual Memory. I also reduce to minimum creation of local/global references, as it is affects to JVM memory use. If you are writing JNI code under MS Windows then you can try my tools that automate JNI code writing:
    http://simtel.net/product.php[id]93174[SiteID]simtel.net
    http://simtel.net/product.php[id]94368[SiteID]simtel.net
    Now I am developing this tool for .Net. In two weeks it will be finished.

  • VSTS load test QUESTION : While recording the webPerformanceTest, is it is possible to clear / force to clear cachewithout stopping or closing the IE on recorder?

    VSTS load test QUESTION : While recording the webPerformanceTest, is it is possible to clear / force to clear cache without stopping or closing the IE on recorder?
    I am facing issue, while recording the webtest, our application first time loading any screen calls some requests and 2nd time when browsed the same information if it is available at cache then it will not
    call the requests again.
    How can i force the VSTS to clear cache while recording, so that i can record those requests which gets called at the first time.
    Regards
    SatishK

    Hi SatishK,
    Thanks for your reply.
    >>but my question was while recording (During recording using web test recorder) i want to clear cache.
    Based on your issue,
     I did some research about it,
    but I still find the official document about it. Generally, I know that if we want to clear the web performance test by the
    Cashe Control properties, so I think that it is not possible to clear the cashes when we are recording the web performance.
    If you still want to this feature for web performance test, I suggest you could submit this feature request:
    http://visualstudio.uservoice.com/forums/121579-visual-studio. The Visual Studio product team is listening to user voice there. You
    can send your idea there and people can vote. If you submit this suggestion, I hope you could post that link here, I will help you vote it.
    Thanks for your understanding.
    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.

  • Clear the cache

    hi
    i develop an extension for indesign with CS extension builder 2 et Flashbuilder 4.6, is it possible to clear the cache during the execution of the extension ? because indesign crash after 2 minutes of execution.
    thanks
    Simon

    Try "profile as..."
    You're probably accessing too many collections.
    If you post some of your code, we might be able to give pointers on how to improve it.
    I'd suggest taking that discussion to the InDesign Scripting Forum.

  • How Can I clear the hard drive and install Tiger?

    I bought a used iBook. I do not have the original discs, but I do have Tiger on DVD. Is it possible to clear the hard drive completley and put on a fresh copy of Tiger? How can I do this?

    Rolesh:
    Formatting, Partitioning Erasing a Hard Disk Drive
    • With computer shut down insert install disk in optical drive.
    • Hit Power button and immediately after chime hold down the "C" key.
    • Select language
    • Go to the Utilities menu (Tiger) Installer menu (Panther & earlier) and launch Disk Utility.
    • Select your HDD (manufacturer ID) in left side bar.
    • Select Partition tab in main panel. (You are about to create a single partition volume.)
    • Click on Options button
    • Select Apple Partition Map (PPC Macs) or GUID Partition Table (Intel Macs)
    • Click OK
    • Select number of partitions in pull-down menu above Volume diagram.
    (Note 1: One partition is normally preferable for an internal HDD.)
    • Type in name in Name field (usually Macintosh HD)
    • Select Volume Format as Mac OS Extended (Journaled)
    • Click Partition button at bottom of panel.
    • Select Erase tab
    • Select the sub-volume (indented) under Manufacturer ID (usually Macintosh HD).
    • Check to be sure your Volume Name and Volume Format are correct.
    • Click Erase button
    • Quit Disk Utility.
    Open installer and begin installation process.
    Installation Process
    (If you are still booted from the install disk skip first three steps)
    • With computer shut down insert install disk in optical drive.
    • Hit Power button and immediately after chime hold down the "C" key.
    • Select language
    • Open Installer and begin installation.
    • Select installation option
    • Choose to Customize and deselect Foreign Language Translations and Additional Printer drivers.
    Optional: Check box to install X11 (Tiger and later) BSD Subsystems (Panther & earlier).
    • Proceed with installation.
    • After installation computer will restart for setup.
    • After setup, reboot computer.
    • Go to Applications > Utilities > Disk Utility.
    • Select your HDD (manufacturer ID) in left side bar.
    • Select First Aid in main panel.
    • Click Repair Disk Permissions.
    • Connect to Internet.
    • Download and install Mac OS X 10.4.11 Combo update (PPC) (Tiger)
    Computer will restart.
    • Repair Disk Permissions as previously.
    • Go to Apple Menu > Software Update.
    • Install all updates.
    Computer may restart after updates.
    • Go to Applications > Utilities > Disk Utility.
    • Select your HDD (manufacturer ID) in left side bar.
    • Select First Aid in main panel.
    • Click Repair Disk Permissions.
    Please post back with questions, comments or update.
    Good luck.
    cornelius

  • Is it possible clear the class loader cache programatically?

    Hi,
    Is it possible clear the class loader cache programatically?
    Thanks

    By the cache do you mean the loaded classes? If so, you can do that by discarding any pointer you have to the class loader and creating a new class loader. ...though I wonder why you would need to do that...

  • Is it possible to clear all the data off of AppleTV?

    Recently, I started iTunes and it started doing a resync of all my music, movies, etc to my appleTV. I thought this was strange but let it finish the sync anyway. Several hours later when it was complete I took a look at the hard drive utilization from itunes and noticed that over 50% of the storage was marked as other and I'm using 2x the storage that I was using before. I'm assuming that the area marked other is my previously copied media collection and is now stuck in limbo for some reason.
    So my question is there a way to clear the data off so I can resync and regain my lost 64gb of space?
    Thanks.

    The sure fire way to do ti is to just restore the apple TV to factory and then do any upgades you need to do.. This will clear out everything for sure.
    Press and hold the menu + down button on your remote, then follow instructions 'til you get the option to restore.

  • Is there a possibility to clear ONLY the COMPLETED downloads when a button is clicked in firefox?

    is there any way (natively, or by using an extension) to clear ONLY the COMPLETED downloads when a button is clicked in firefox. it should not clear the paused, failed or cancelled downloads. - similar to the functionality in INTERNET DOWNLOAD MANAGER software by TONEC. i have searched lots but could not find such a function. :(

    Along the lines of cor-el's last post, if you want to delete most of the downloads, you can select the entire list using Ctrl+a then Ctrl+click the ones you want to exclude from the selection.
    In some cases, Firefox supports "places queries" to drill down on specific kinds of history. However, I didn't see one for downloads documented in the MDN article, so I'm not sure whether there is a way to query just for successfully completed downloads.
    https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Places_query_URIs

  • Possible to clear vendor open item against already posted payment document?

    Hi
    Can you advise if it is possible to clear an open item against already posted payment/clearing doc? Here is the background to the scenario:
    An invoice was posted with transaction FB60. This was subsequently picked up in the payment run F110 and cleared by payment document number 200005678. The item went to the bank on the paymnet file and was paid out to the vendor. The transaction reference, which appeared on the incoming bank statemnet was the payment document number 200005678.
    Subsequently it was discovered that the original invoice should have been posted with reference to a PO using MIRO. The requirement now is to reverse the paymnet documnet 200005678 in SAP, then reverse the document that was posted using FB60. After this the invoice will be posted using MIRO. This will create an open item on the vendor account.
    This item will not be piad out again. Therefore the requirement is to try clear that open item against the previously posted payment document 200005678.
    Is there any way to clear this vendor open item against the originally posted payment document 200005678?? Or any other advice on how this scenario can be handled in SAP?
    Thank for your help.
    Mike

    Hi,
    I tried that option in our test system. I ran FBRA and entered Paymnet Documnet Number (+Clearing Doc Number), Company Code, Fiscal Year.
    Then chose menu option Clearing -> Reset Cleared Items.
    The system pops up a window asking for a reversal reason and reversal date.  I use 01 and posting date of today.
    The system now posts another cleared document. That document places the invoice as an open item on the vendor account. It does not place the Payment Document as an open item on the account.
    When I go to F-44 only the open vendor invoice is showing there. There is no open paymnet document.
    Is there perhaps some configuration setting that stops the placement of the paymnet document as an open item when reset?
    Thanks for your help again.

  • Not possible to reverse the document in financial accounting Error

    Hi All
    We are getting invoice Data from Client
    through  ACC_EMPLOYEE_PAY02  
    Document Like
    31 45699(vendor )    2356.00
    31 45688 (vendor)    1245.00
    31 45677 (vendor)    1000.00
    31 45666 (vendor)    2000.00
    40  Accur(Clearing)       6601.00
    In this list some of vendors i did payment Run.
    I need to reverse the 1 vendor open Item.
    It is showing open item but i am unable to reverse this document.
    i tried to FB03 but it is showing Below Error
    Not possible to reverse the document in financial accounting
    Message no. F5673
    Diagnosis
    Document '1900000003' in company code '1164' should be reversed. However,
    this document was not posted in the Financial Accounting module, HRPAY is, rather, of type ''.
    System Response
    Documents which were not originally posted in Financial Accounting also cannot be reversed in Financial Accounting.
    Procedure
    Reverse the original transaction. 
    You can display the original document from the FI document via 'Environment' -> 'Original doc.'.
    I tried to trace Original Document.
    trhough Environment -> Original Doc.
    ERROR is
    Payroll Posting Document 000000091 does not exist
    How to Reverse the Open Item.
    raju.

    Hi,
    SAP doesn't allow you to reverse a document in FI if it was created subsequently from another module (in your case HR).
    Why don't you use F-44 transaction code to manually clear the open vendor line item and offset it against the same clearing account?
    Regards

  • Downloading images used to go automatically to the last folder used to save images, even when reopening Firefox. In just the past few days, possibly coinciding wih the most recent updates, the folder defaults to the 'Downloads' folder. This is most annoyi

    Downloading images used to go automatically to the last folder used to save images, even when reopening Firefox. In just the past few days, possibly coinciding wih the most recent updates, the folder defaults to the 'Downloads' folder. This is most annoying. What happened? Internet Explorer 8.0 did the same thing. This was one of the reasons why I started using Firefox to download all images. I went into Tools>Options and it only lets me set another folder. I dont want to set a specific folder I want it to always go to the last folder used. So what gives?
    == This happened ==
    Every time Firefox opened
    == possibly when the most recent updates were installed, a few days ago

    Thanks jscher 2000. I guess I didn't make it clear. "It restarts with all the addons activated, and resumes with the tabs that were open before closing it." IE, it's running fine now with all the extensions activated. Everything is OK now.
    So something in the Firefox code was causing the bad behavior. It's not essential that I find out what the problem was - I'm just curious. And if anybody else has this same problem, it might be nice to have it corrected at the source.

Maybe you are looking for

  • Authenticated User not showing up in access log

    Hello all, I am trying to get authenticated users to show up in the access log of SunOne Web Server 6.1 SP4 and it doesn't work. It is a default paramter to show up in the access log but doesn't show in the log. In fact, when I set the log to only sh

  • Is there anywhere that Apple takes suggestions for iOS updates?

    I have an idea that I think everyone can appreciate. I would like to see them add a dictionary-type feature to the settings for the auto-correct function, so people can directly add words to the dictionary and have the ability to control which words

  • Restore 5.1.1 error ipad 3

    Issuing iPad 3 7.1 I want to restore the iPad 3 to Version 5.1.1 How can I so

  • Undeploying config_db components

    Hello Experts, I have EP 7 SP09 and deployed DI_CBD, DTR with SP14 and CMS with 10. Now I want to undeploy it and go with SP09 of DI ( all the 3 components). I have selected all the components ( cross checked one by one from SDM and selected and remo

  • Photoshop CS3 to Dreamweaver CS3 CSS question

    Hi all, I am sorry if this is allready dicussed a couple of times.I did a search and just could not find it. When I export a site from Photoshop CS3 to DIV (generate CSS by ID) it is aligned to the left and all DIV's have a specific position on the p