Remove "content-length" item from the header of httpServletResponse

Hi all,
tomcat6.0, JDK5.0.
I use tomcat6.0 as the web container and JDK version is 1.5.
I found tomcat connector will add "content-length" item in all httpServletResponse header.
But now I need generate some chunked http response.according the RFC, there should be no "content-length" item in the http header when response is chunked-encoding.
So how can I remove the 'content-length" item from the httpServletResponse header?
Thanks a lot!
Rare

one posting to a question, please:
http://forum.java.sun.com/thread.jspa?threadID=5268921&tstart=0
%

Similar Messages

  • Automatic upload of content area items from the O/S

    I wish to automate the upload of content area items into the portal. Can this be done via the PDK or otherwise?
    I have a number of PDF and HTML reports that get generated and placed into a physical directory on the server. I want all these files from a specific directory to be uploaded as items into the portal automatically so that users can view the reports with appropriate security. The reports can be modified so that when run they insert a record into a custom table to store their path and file names. This can be used by a custom procedure to point to the files at the point of upload.
    However, can this upload actually be done?
    Any ideas on how to do this would be useful.
    Regards,
    John

    Physical path on the database server.
    Using the api to upload is easy as long as you provide the content-area id, folder-id, display-name, item-type (PORTAL30.WWSBR_API.ITEM_TYPE_FILE), content-area type id (PORTAL30.WWSBR_API.SHARED_OBJECTS), folder-region-id (whatever it is for Regular Items, you'll find it in wwsbr_all_folder_regions) and the physical file-name.

  • I need to remove a library item from the stage

    Right now I have a button that brings a library symbol to the stage. Ideally, I want to be able to click on the symbol itself to make itself from the stage. Can anyone help me with this?

    for example:
    var sym:WhateverClass=new WhateverClass();
    sym.addEventListener(MouseEvent.CLICK,clickF);
    function clickF(e:MouseEvent):void{
    e.currentTarget.parent.removeChild(e.currentTarget);

  • How can we remove items from the VF04 list?

    We have a long list of items in VF04 that, for various reasons (some process related, some due to errors), are not to be billed. We have looked at applying filters to the list but there is nothing really suitable to hide these individual documents e.g. we could filter out some dates where none of the items on that date are to be billed but other dates have a mix of items we want to bill and others we don't.
    I have done a search of this forum but didn't find a previous topic with a quick and simple method to remove items from the list .
    Is there a method, other than billing them or sorting each issue individually, to permanently remove individual documents from the VF04 list?
    Thanks in advance for any help.
    David

    Hi,
    David,
    Download a list of Pending delivers doc form VF04.
    Paste the list in T.Code : VL09 (Delivery reversal) and reverse the delivery.
    Then go to T.Code: VL06G Select the list of deliveries that has been reversed, select/delete all un- wanted deliveries.
    This way you can remove all unwanted pending deliveries forn Billing due list (VF04).
    Thanks & Regards,
    R.Janakiraman

  • How do I remove items from the cloud without losing them permanently?

    My icloud storage is almost full. How do I remove items from the cloud and not lose them?

    What items?
    Purchased music, movies, TV shows, apps, and books do not use up your iCloud storage.
    See the link below for how to reduce the amount of storage you're using:
    http://support.apple.com/kb/HT4847

  • How do you remove items from the assets panel that are duplicated?

    How do you remove items from the assets panel that are duplicated?

    If you add an item to a slideshow, you'll usually see 2 entries for that image in the assets panel - one represents the thumbnail, and the other represents the larger 'hero' image.
    It sounds like you may have added the same image to your slideshow twice. You can select one of the hero images or thumbnail images in your slideshow and use the delete key to remove it. Then the extra 2 entries in the assets panel should disappear.

  • How do you remove items from the start up disc

    How do you remove items from the start up disc?

    Freeing Up Space on The Hard Drive
    You can remove data from your Home folder except for the /Home/Library/ folder.
    Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
    Also see Freeing space on your Mac OS X startup disk.

  • How do I remove items from the dock?

    How do I remove items from the dock ?

    Single click and then drag it to the desktop. It will dissapear in a puff of smoke. You also may benefit by bookmarking and using:
    Find Out How Video tutorials

  • Can't remove items from the selectMenu

    I am using selectMenu as:
    <a4j:region selfRendered="true"  id="text">
                <h:selectOneListbox id="symbol" value="#{user.name}">
                  <f:selectItems value="#{user.temp_list}" />
              </h:selectOneListbox>
    <a4j:commandButton action="#{user.getData}" reRender="symbol" value="Get"/>
    </a4j:region>temp_list has following three values when page loads:
    temp_list.add(new SelectItem("Sunday"));
    temp_list.add(new SelectItem("Monday"));
    temp_list.add(new SelectItem("Tuesday"));Now in user.getData i want to remove items one by one based on the selection made by the user. The code is:
    temp_list.remove(0);
    this.setTemp_list(temp_list);But the problem is that if user selects Sunday for example, it remove it from the list but next time when user select Monday it removes monday but BRING BACK SUNDAY AGAIN IN THE LIST. Why is it so?

    BalusC wrote:
    I don´t understand you.Actually i was asking about the code which i mentioned in my last post.
    Okay then what could be the solution? What my thinking is that calling list.remove actually removes the item from the list permenantly, isn't it? If so then why does it showing me again in the selectMenu?

  • Can I remove items from the Services menu?

    I think the subject line says it all: can I remove items from the Services menu? I have a number of items in the Services menu that I never use and I would like to make the menu shorter to make it easier to access the items that I do use.

    There are a couple of things you could try. There's an application called Service Scrubber that is supposed to do this. But the web page says it's for 10.4, though it says it might work on 10.3
    Alternatively, you can edit the Info.plist or Info-macos.plist file in each application bundle to remove its service from the Services menu. This post at Mac OS X Hints has a pretty detailed description of how to do it. I tried this on my iMac running 10.3.9 and it worked just fine.
    Don't know about the Service Scrubber app, but if you edit the plist files, you'll need to log out and log back in before the changes take effect.
    Also, if you decide to edit the files by hand, I'd suggest just renaming NSServices by adding an "x" to the front or something, rather than deleting the item completely. That makes the changes easier to reverse.
    charlie

  • How can I remove items from the open a recent file menue.

    How can I remove items from the "Open a Recent File" menue. Many other applications allow the clearing of that file . Is this possible in Adobe Reader 10.1.2 ? If so how?

    See this previous topic: http://forums.adobe.com/message/3759596
    It is for Acrobat, but the registry entries are similar for Reader.

  • How can I add and remove items from the bookmarks toolbar?

    I want to remove items from the bookmarks toolbar and add ones that I use on a regular basis. How can I do this?

    See:
    *https://developer.mozilla.org/en/Chrome
    *http://en.wikipedia.org/wiki/User_interface_chrome#User_interface_and_interaction_design

  • Remove items from the Tools menu in the Service Manager console

    Hi. 
    I know I have see a post regarding this before, but just wanted to put it out these once again.  I'd like to remove items from the Tools menu in the Service Manager console - specifically My Notifications and Create Change Request.  This is because
    the former allows a user to create notification subscriptions in incorrect Management Packs, and the latter because we are not using Change Management yet.  Does anyone have any information on how to achieve this?
    Cheers
    Shaun

    how to customize tools tht are displayed in tool menu
    http://technet.microsoft.com/en-us/library/jj134147.aspx#BKMK_tools

  • HT5429 How do I remove items from the "current location/to" list?

    In MAPS, how do I remove items from the "current location/to" list?

    Hit the book icon and you will see delete all option. I have not found a way to delete them one at a time.

  • Help. Need to remove item from the "open with" menu

    Does anyone know how I can remove an item from the "open with" menu?

    You could try removing the quicktime .pkg files from the receipts folder in the root library.
    The system has to go somewhere to determine eligible applications it can use to open a file.
    Each application would contain its base settings in its receipts file.
    Once you delete the receipt you should delete the application and reinstall it.
    The reinstall will write a new receipts file.
    The receipts file is used by your system when it repairs disk permissions.
    The system does not just add a setting.
    For example if you take a .png file and click on it and look at what can open it you may get a long list.
    If you choose "other" from the get info "open with" menu and have acrobat reader installed in applications, it will show as an application you can choose.
    That application, however, is not in the drop down list.
    If you choose acrobat reader and apply it to the file type, it will show as the default.
    If you then choose another application in the list and apply, Acrobat Reader disappears from the list.
    The system only shows files in the list that advertise to the system that they can read the file type.
    You have a system which is populating the list with legitimate programs that are compatible with the advertised file type.
    It is reading that advertisement for the quicktime application somewhere.
    The configuration is written to each file individually, you can choose to have a single file associated with a particular application or have it apply to all files of that type.
    Check in Spotlight for a copy of the application in another location.

Maybe you are looking for