Method ex-post

Hello, I'm doing a parameterization for calculating estimates in 56 APO using the method that analyzes multitude of profiles. Also I have since applied the ex-post method with a value of 1.25 sigma, however the result is not the wait. As I understand it does is correct 25% up and below the values to discard very outliers, however the correction does not make it just as I expected. For example in a series of type 91-1-363-187-500-273-644-328-483-430-446 392 calculates a forecast yet corrected with the metod ex-post series is as follows 97-14-234-187-383-273-520-328-483-430-446 is not correct for me You could tell me if I'm wrong parameterization using ex-post method or is there another way to do so I will mark a result of this type 294-294-294-294-490-273-490-328-483-430-446 Thank You

>
vinay kolla wrote:
get all the line data GI
SPA / GPA doesnt work...
create a Ztable update your entires into it and get those entries using select in your other piece of code... once things are completed... delete entries from the Ztable.

Similar Messages

  • Data is not refelct by Set_data method in post method of ME_PROCESS_PO_CUST

    Hi OO gurus,
    I'm calling Set_data method to set line item data of PO in POST method in ZME_PROCESS_PO_CUST.
    But data is not updating.
    Can any body give logic how to call set data method in POST method?
    Thanks in advance.
    Edited by: v bheem on Jan 27, 2010 12:51 PM

    Hi,
    Do like the below code...
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
    DATA: re_data TYPE mepoitem.
    DATA: RE_HEADER TYPE MEPOHEADER.
    DATA: L_HEADER TYPE REF TO IF_PURCHASE_ORDER_MM.
    DATA: L_HEADDATA TYPE MEPOHEADER.
    CALL METHOD im_item->get_data
    RECEIVING
    RE_DATA = RE_DATA.
    L_HEADER = im_item->get_header( ).
    L_HEADDATA = L_HEADER->GET_DATA( ).
    next modify feilds  which you want to update of re_data and set values...
    CALL METHOD im_item->set_data
    EXPORTING
    IM_DATA = RE_DATA.
    Thanks,
    Shailaja Ainala.

  • URGENT-Dynamic News Application. Dynamic Servlet Change method to POST

    When I first logon to the Dynamic Servlet I get a form with USERNAME and PASSWORD and Categories and Subcategories to select with a "Create Profile" button. After enetering details I get the next html page which is the news detail page generated out of DynamicIE.xsl.
    The Form generated in DynamicServlet uses a defaullt method of GET to submit. I want to change it to POST and did it in the code but it does not work. After I changege the method to POST and I click the "Create Profile" button the next HTML with news detial is not displyed, it just displays the same HTML. I checked the syntax of POST looks fine. I followed the code, when the form is submitted RequestHandler.java reads the params and populates the Category,Subcategory and Types vectors and then the function servlethandler.sendDynamicHTML is called which in turn calls the applyXSLtoXML function. In this whole process I do not see why the next form is not generated when the method is POST and why it is displayed when the method is GET.
    I changed the methods to POST for the AdminServlet by making the changes in the Admin.xsl and it works fine.
    It is really confusing me as the logic of the code should not have any effect with the form submission method. Any quick help will be appreciated.

    We are passing the REQUEST_TYPE as part of the URL. If we use the POST method, those values are not able to catch from the java appalication. The servlet is written in such a way that based on different conditions we are displaying different pages. Since it is checking the value of REQUEST_TYPE there and not matching with the values, it ia again giving the same old page.

  • Setting form method to POST to hide URL using WWW_GET_REPORT with webrfc

    I want to hide the URL details when running webrfc reports. The link contains information that we want to hide form the user.
    Is there a way of setting the form method to POST rather than GET when running a report using webrfc function WWW_GET_REPORT.
    Thank you
    Karen

    yes its possible.
    for example, if you have a report with a selection screen parameter called abc .
    (parameters: abc(10) .)
    then the code would be
    form method="POST" action="http://abaphost.domain.com:1080/sap/bc/webrfc?sap-client=001" >
    input name="PARC_ABC" size= 10 maxlength= 10 >
    input type=hidden name= _FUNCTION  size= 30  value= WWW_GET_REPORT >                                                                      
    input type=hidden name= _REPORT  size= 30  value= Y_TEST_WEBRFC > 
      input type="submit" value="Execute report">    
      /form>
    Regards
    Raja

  • Default due date , payment method when posting invoice with Special G/L

    Hi Gurus,
    I have a question is when I am posting an invocie to a vendor (FB60), Due On date, payment method  are automatically calculated based on the defaulted baseline date and the payment term in the vendor master. But when I am posting the invocie to the same vendor with Special G/L indicator, Due On date, payment method are not automatically calculated and system are expecting me to enter this date manually. Is there a way we can default this Due On date, payment thod based on payment term like it happens when posting to other invoices without Sp GL indicator ?
    Thanks
    Edited by: Ngoc Hoang on Nov 29, 2011 8:30 AM

    Dear Ngog,
    In general, special G/L transactions are used to map special processes
    to be stated separately in the balance sheet.So if you use special GL
    indicator, the fields relevant to payment terms (including baseline
    date) are not displayed. This is not controlled by field status.
    To make the fields You need ready for input for posting
    with special G/L indicator, the following Customizing setting is
    necessary:
    Financial Accounting -> Accounts Receivable and Accounts Payable
    ->Business Transactions -> Outgoing Payments -> Automatic Outgoing
    Payment-> Payment Method/Bank Selection -> Configure payment program ->
    All company codes -> double-click on corresponding company code -> under
    Vendor -> 'Sp. G/L transactions to be paid' you should enter the special
    G/L indicator A,B, etc.
    As explained in SAP note 4683, the only standard possibility to get the
    field payment terms on creating a posting with a special G/L indicator
    is by setting in the payment program configuration (trans. FBKP) for
    'All company codes' for customers/vendors 'Sp. G/L transaction to be
    paid'.
    Mauri

  • User friendly method to post a error document

    Hi Experts,
        I have a requirement. While posting vendor billing in a custom transaction, the posting is not happening because of invalid cost objects. To solve it some alternative cost object must be selected by the custom program and has to post the document. Is there any much user friendly method to do this, apart from doing enhancement either inside the posting custom program to select valid cost objects or designing screen with controls to select valid cost objects and post?
    Thanks in advance!!!

    Hello Raju,
    Its a invoice which the user posts via a MIRO.
    I can do it with a FM also, U r right.
    There have been lots of issues with rounding values when trying to post a parked document in MIRO , till now such invoices were getting posted. Now, we r getting errors, just trying to find if someone else had encountered with a similiar problem and what was the approach they used?
    we get a value of 0.02 difference when trying to post via MIRO for some invoices, till now such invoices were getting posted. Its purely a functional issue though.
    We checked the invoice also, its prefectly fine. There does not seems to any issue, just wondering if there  has been any exchange rate problems etc...
    Thanks,
    Anitha

  • REPLY to xsl:output method="html" posting

    Due to a problem with the discussion software, I cannot reply to postings
    with a less-than sign in the Subject!
    As you can imagine in an XML forum where
    angle-brackets are common, this is a real
    pain! The OTN guys tell me they are
    working on a solution.
    We fully support all options of <xsl utput>
    The problem here is that your XSL Stylesheet must be a well-formed XML document, so everywhere you are using the <BR> element, you need to use
    instead.
    <xsl utput method="html"/> requests
    that when the XSLT Engine writes out
    the result of your transformation,
    is a propert HTML document.
    what the XSLT engine reads in must
    be well-formed XML.

    Sorry for jumping in on this thread, but I have a question regarding you reply. I have an XSL stylesheet that preforms XML to HTML conversion. Everything works correctly with the exception of those HTML tags that are not weel formed. Using your example if I have something like:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    <input type="text" name="{NAME}" size="{DISPLAY_LENGTH}" maxlength="{LENGTH}"></input>
    </xsl:stylesheet>
    It would render HTML in the format of
    <HTML>
    <input type="text" name="in1" size="10" maxlength="20"/>
    </HTML>
    While IE can handle this Netscape can not. Is there anyway to generate completely cross browser complient HTML with XSL?
    Thanks!

  • How to call setdata method in POST method of BADI ME_PROCESS_PO_CUST ?

    Hi all,
    I am working on the enhancement to PO using BADI . My requirement is to update the net price of the item while saving the PO based on some conditions. i am calling setdata method to update the item netprice. But i am unable to update it? Can you please help me on how to change the item price while saving the PO?
    Thanks,
    Aravind.

    Hi all,
    Please help me. If my question was not clear, i will explain.
    Thanks,
    Aravind

  • Best method to post Invoices!

    Hi guys,
    Could you please help on this?
    I'm looking for the best way to post the following Invoice types:
    1) FI Vendor Invoice (Simulates FB60 transaction)
    2) MM Vendor Invoice (Simulates MIRO transaction)
    3) FI Customer Invoice (Simulates FB70 transaction)
    I also need to know for each type if IDoc is possible.
    Thanks a lot,
    Franck

    Hi,
    For 1) and 3) try using the BAPI BAPI_ACC_DOCUMENT_POST
    For 2) use the BAPI BAPI_INCOMINGINVOICE_CREATE
    Thanks,
    Naren

  • How to use POST method in PI 7.11 when using HTTP adapter

    Hi
    I need to use the POST method when using the http receiver adapter in PI 7.11. Now the GET method is used. I am using the Addressing Type = "HTTP Destination" where you create an RFC of type 3 in SM59 and reference this in your HTTP receiver adapter.
    What do I do?
    BR
    MIkael

    Hi Patrick
    I need to use the POST method, not the GET method. The external partner, which is receiving our message, says, that we are using GET.
    This is from their log where we are DongEnergy:
    From DongEnergy:
    2010-01-14 09:46:11 W3SVC1 10.1.2.37 GET /DongEnergy/xxxxxxxxx.dll - 443 - 193.162.91.1 SAPNetWeaverApplicationServer(1.0;711) 500 0 0 214 172
    From Danisco:
    2010-01-14 07:54:13 W3SVC1 10.1.2.37 POST /Danisco/xxxxxxxxxx.dll - 443 - 193.XXX.191.1 SAPWebApplicationServer(1.0;640) 202 0 0 380 5984
    Could it be our firewall which vonverts the method from POST to GET?
    MIkael

  • Ideal Method GET or POST?

    Hi All,
    Which would be ideal method for posting data to Search Engine, GET or
    POST method?
    Thanks
    Vinay

    Vinay,
    Almost certainly GET - but it depends on what the search engine is
    expecting!
    For example, if you do a Google search for "Award winning J2EE portal
    server" you will see the URL looks like:
    http://www.google.com/search?hl=ja&ie=UTF8&oe=UTF8&q=Award+winning+J2EE+port
    al+server&lr=
    So there is some simple information about the user's locale, browser and
    then the query string itself. You can book mark this URL, or simple open it
    with a URLConnection and you will get the results page.
    Sincerely,
    Daniel Selman
    "Vinay Ram" <[email protected]> wrote in message
    news:3cccd53b$[email protected]..
    Hi All,
    Which would be ideal method for posting data to Search Engine, GET or
    POST method?
    Thanks
    Vinay

  • To Send POST Method Value in ProxyServer

    Hello
    I developed a ProxyServer. Problem is when i send post method value to server...data is not sending correctly. But i can get the value correctly form browser. How can send the post method values.
    My source code is
    * ServerThread.java
    * Created on May 15, 2001, 2:05 PM
    * @author  maniksanthosh
    * @version
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.io.BufferedInputStream;
    public class ServerThread extends java.lang.Thread {
        /** Creates new ServerThread */
        Socket client;
        public ServerThread(Socket client) {
            this.client = client;
        String SampleURL="";
        public void run() {
            try
            client.setKeepAlive(true);
            DataInputStream Sin = new DataInputStream(client.getInputStream());
            OutputStream Sout = client.getOutputStream();
            String request = Sin.readLine()+"\n";
           System.out.println(request);
            int fsp =  request.indexOf(' ');
            int nsp = request.indexOf(' ',fsp+1);
            int eol = request.indexOf('\n');
            String method = request.substring(0,fsp);
            System.out.println("Method Length :"+method.length());
            String SUrl = request.substring(fsp+1,nsp);
            String raw_mime_header = request.substring(eol+1);
            request = request.substring(0,eol);
           /* System.setProperty("proxySet","true");
            System.setProperty("proxyHost","132.132.64.244");
            System.setProperty("proxyPort","3128");*/
                System.out.println(SUrl);
             URL url = new URL(SUrl);
             HttpURLConnection urlc =(HttpURLConnection)url.openConnection();
             System.out.println("System Method :"+urlc.getRequestMethod());
             urlc.setDoOutput(true);
             System.out.println("URL: "+url);
             System.out.println("Method: "+method);
         //   System.out.println("Request Property :"+urlc.getRequestProperty("accept"));
             String data ="";
            if(method.equalsIgnoreCase("GET"))
              // urlc.setRequestMethod("GET");
               /*while((data = Sin.readLine())!=null)
                    if(data.equals("") || data.equals(" ") || data.equals("\r\n\r\n"))
                        URLout.writeBytes("\r\n\r\n");
                        URLout.flush();
                        break;
                    URLout.writeBytes(data+"\r\n");
                    URLout.flush();
             int ch =0;  
                InputStream URLin = urlc.getInputStream();
                while((ch=URLin.read())!=-1)
                    Sout.write(ch);
                    Sout.flush();
            }else
    if(method.equalsIgnoreCase("POST"))
              DataOutputStream URLout = new DataOutputStream(urlc.getOutputStream());
              System.out.println("Request Method : "+urlc.getRequestMethod());
              System.out.println("Instance Follow Redirects : "+urlc.getResponseCode());
              urlc.setInstanceFollowRedirects(true);
         //     urlc.setDoInput(true);
                while((data=Sin.readLine())!=null)
                     if(data.equals("") || data.equals(" ") || data.equals("\r\n\r\n"))
                        URLout.writeBytes("\r\n");
                        int postch = 0;
                        int total = Sin.available();
                        System.out.println("Total :"+total);
                        for(int l=0;l<total;l++)
                           postch=Sin.read();
                           URLout.write(postch);
                        System.out.print((char)postch);
                        //   URLout.flush();
                        URLout.writeBytes("\r\n");
                      // URLout.flush();
                        break;
                     urlc.setDefaultRequestProperty("POST",postch);
                     URLout.writeBytes(data+"\r\n");
                    URLout.flush();                                 
                int ch =0;  
                InputStream URLin = urlc.getInputStream();
                while((ch=URLin.read())!=-1)
                    Sout.write(ch);
                    Sout.flush();
                URLin.close();
                URLout.close();
                   Sout.flush();
             Sin.close();
             Sout.close();
             Sin.close();
            }catch(Exception e){System.out.println("Inside Run Method in Server Thread "+e);}
        private String getPostValue(InputStream in) //throws IOException
         /*byte buf[] = new byte[8192];
         int pos = 0;
         int c;
         while((c=in.read())!=-1)
            System.out.print((char)c);
                switch(c)
                    case '\r' :
                        break;
                    case '\n':
                     if(buf[pos-1]==c)
                            return new String(buf,0,pos);
                     default:
                         buf[pos++] = (byte) c;
          return null; */
            /*DataInputStream data = new DataInputStream(in);
            String postStr ="";
            while((postStr=data.readLine())!=null)
                System.out.println(postStr);
            return postStr;*/
            return null;
       private String  getRawRequest(InputStream in) throws IOException
            byte buf[] = new byte[8192];
            int pos=0;
            int c;
            while((c=in.read())!= -1)
                System.out.print((char)c);
                switch(c)
                    case '\r' :
                        SampleURL+="/r";
                        break;
                    case '\n':
                        SampleURL+="/n";
                     if(buf[pos-1]==c)
                            return new String(buf,0,pos);
                     default:
                         buf[pos++] = (byte) c;
                         SampleURL+=(char)c;
            return null;
    }

    I can read all the value from browser ..but i couldn't send that to server. I changed ("\r\n\r\n") to ("\r\n"). Still the value is not going correct.
    Whether I have to use setDefautRequestProperty(). if i have cookies..how can i send that value to browser from Server or from Server to browser.
    Regards
    Santhosh

  • NavigateToURL() POST Method...

    I am trying to submit data to an ASP page via the
    navigateToURL() POST method, but when I try to reference the
    request variable.. it is blank. Any ideas what I am doing wrong?
    script:
    var url:URLRequest = new URLRequest("
    http://www.mydomain.com/test.asp");
    var keyData:URLVariables = new URLVariables();
    keyData.name = "mike";
    url.data = keyData;
    url.method = URLRequestMethod.POST;
    navigateToURL(url,"_blank");
    On test.asp :
    if request("name") <> "" then
    response.Write request("name")
    else
    response.write "No Data"
    end if
    Thanks for the help.
    Mike

    Hi,
    I encouter the same problem, when my application is launched
    from Flex Builder I can send parameters in Post to my servlet. I am
    using a URLRequest and navigateToUrl. I need to navigate to the url
    because the servlet send me a .doc file I must open.
    When I execute the application from an IFrame, the servlet
    doesn't receive any parameters (it works if I send with the GET
    method). My problem is that I must use POST because the size of the
    parameters could exceed the max length allowed by the get method
    (1024).
    Does someone have a workaround, to call navigateToUrl with
    the POST method when the swf file is hosted in a IFrame ? If there
    is not, is it a bug of flex, of the flash player or a security
    restriction ?
    Thanks,
    David

  • Can't post to Mircrosoft IIS machines

    Hi I am using the following code from a tutorial. But it blows up every time after a second POST. But I can post as many times as I need to a linux box or any other UNIX boxes I can think of.
    What is going on? Why does it not work with microsoft products?
    * HttpMidlet.java
    * Created on October 23, 2001, 11:19 AM
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.io.*;
    import java.io.*;
    * @author kgabhart
    * @version
    public class HttpMidlet extends MIDlet implements CommandListener {
    // A default URL is used. User can change it from the GUI
    private static String defaultURL = "http://www.microsoft.com";
    // Main MIDP display
    private Display myDisplay = null;
    // GUI component for entering a URL
    private Form requestScreen;
    private TextField requestField;
    // GUI component for submitting request
    private List list;
    private String[] menuItems;
    // GUI component for displaying server responses
    private Form resultScreen;
    private StringItem resultField;
    // the "send" button used on requestScreen
    Command sendCommand;
    // the "exit" button used on the requestScreen
    Command exitCommand;
    // the "back" button used on resultScreen
    Command backCommand;
    public HttpMidlet(){
    // initialize the GUI components
    myDisplay = Display.getDisplay( this );
    sendCommand = new Command( "SEND", Command.OK, 1 );
    exitCommand = new Command( "EXIT", Command.OK, 1 );
    backCommand = new Command( "BACK", Command.OK, 1 );
    // display the request URL
    requestScreen = new Form( "Type in a URL:" );
    requestField = new TextField( null, defaultURL, 100, TextField.URL );
    requestScreen.append( requestField );
    requestScreen.addCommand( sendCommand );
    requestScreen.addCommand( exitCommand );
    requestScreen.setCommandListener( this );
    // select the HTTP request method desired
    menuItems = new String[] {"GET Request", "POST Request"};
    list = new List( "Select an HTTP method:", List.IMPLICIT, menuItems, null );
    list.setCommandListener( this );
    // display the message received from server
    resultScreen = new Form( "Server Response:" );
    resultScreen.addCommand( backCommand );
    resultScreen.setCommandListener( this );
    }//end HttpMidlet()
    public void startApp() {
    myDisplay.setCurrent( requestScreen );
    }//end startApp()
    public void commandAction( Command com, Displayable disp ) {
    // when user clicks on the "send" button
    if ( com == sendCommand ) {
    myDisplay.setCurrent( list );
    } else if ( com == backCommand ) {
    // do it all over again
    requestField.setString( defaultURL );
    myDisplay.setCurrent( requestScreen );
    } else if ( com == exitCommand ) {
    destroyApp( true );
    notifyDestroyed();
    }//end if ( com == sendCommand )
    if ( disp == list && com == List.SELECT_COMMAND ) {
    String result;
    if ( list.getSelectedIndex() == 0 ) { // send a GET request to server
    System.out.println("getHTTP");
    result = sendHttpGet( requestField.getString() );
    else // send a POST request to server
    System.out.println("postHTTP");
    result = sendHttpPost( requestField.getString() );
    resultField = new StringItem( null, result );
    resultScreen.append( resultField );
    myDisplay.setCurrent( resultScreen );
    }//end if ( dis == list && com == List.SELECT_COMMAND )
    }//end commandAction( Command, Displayable )
    private String sendHttpGet( String url )
    HttpConnection hcon = null;
    DataInputStream dis = null;
    StringBuffer responseMessage = new StringBuffer();
    try {
    // a standard HttpConnection with READ access
    hcon = ( HttpConnection )Connector.open( url );
    // obtain a DataInputStream from the HttpConnection
    dis = new DataInputStream( hcon.openInputStream() );
    // retrieve the response from the server
    int ch;
    while ( ( ch = dis.read() ) != -1 ) {
    responseMessage.append( (char) ch );
    }//end while ( ( ch = dis.read() ) != -1 )
    catch( Exception e )
    e.printStackTrace();
    responseMessage.append( "ERROR" );
    } finally {
    try {
    if ( hcon != null ) hcon.close();
    if ( dis != null ) dis.close();
    } catch ( IOException ioe ) {
    ioe.printStackTrace();
    }//end try/catch
    }//end try/catch/finally
    return responseMessage.toString();
    }//end sendHttpGet( String )
    private String sendHttpPost( String url )
    HttpConnection hcon = null;
    DataInputStream dis = null;
    OutputStream os = null;
    StringBuffer responseMessage = new StringBuffer();
    // the request body
    String requeststring = "This is a POST.";
    try {
    hcon = (HttpConnection)Connector.open(url);
    byte [] data = "TextField=Hello&TextField2=Hello2&Submit=Submit".getBytes ();
    hcon.setRequestMethod(HttpConnection.POST);
    hcon.setRequestProperty("User-Agent","Profile/MIDP-1.0 Configuration/CLDC-1.0");
    hcon.setRequestProperty("Content-Language","en-US");
    hcon.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    os = hcon.openOutputStream ();
    os.write (data);
    os.close ();
    //conn.close ();
    // obtain DataInputStream for receiving server response
    dis = new DataInputStream( hcon.openInputStream() );
    // retrieve the response from server
    int ch;
    while( ( ch = dis.read() ) != -1 ) {
    responseMessage.append( (char)ch );
    }//end while( ( ch = dis.read() ) != -1 ) {
    catch( Exception e )
    e.printStackTrace();
    responseMessage.append( "ERROR" );
    finally {
    // free up i/o streams and http connection
    try {
    if( hcon != null ) hcon.close();
    if( dis != null ) dis.close();
    if( os != null ) os.close();
    } catch ( IOException ioe ) {
    ioe.printStackTrace();
    }//end try/catch
    }//end try/catch/finally
    return responseMessage.toString();
    }//end sendHttpPost( String )
    private String xsendHttpPost( String url )
    HttpConnection hcon = null;
    DataInputStream dis = null;
    DataOutputStream dos = null;
    StringBuffer responseMessage = new StringBuffer();
    // the request body
    String requeststring = "This is a POST.";
    try {
    // an HttpConnection with both read and write access
    hcon = ( HttpConnection )Connector.open( url, Connector.READ_WRITE );
    // set the request method to POST
    hcon.setRequestMethod( HttpConnection.POST );
    //hcon.setRequestProperty("Content-length", ""+ requeststring.length() );
    hcon.setRequestProperty("Content-type","application/x-www-form-urlencoded");
    //hcon.setRequestProperty("Content-language", "en-US"); // should be config.
    //hcon.setRequestProperty("Accept", "text/xml");
    //hcon.setRequestProperty("Connection", "close");
    // obtain DataOutputStream for sending the request string
    dos = hcon.openDataOutputStream();
    byte[] request_body = requeststring.getBytes();
    // send request string to server
    for( int i = 0; i < request_body.length; i++ ) {
    dos.writeByte( request_body[i] );
    }//end for( int i = 0; i < request_body.length; i++ )
    // obtain DataInputStream for receiving server response
    dis = new DataInputStream( hcon.openInputStream() );
    // retrieve the response from server
    int ch;
    while( ( ch = dis.read() ) != -1 ) {
    responseMessage.append( (char)ch );
    }//end while( ( ch = dis.read() ) != -1 ) {
    catch( Exception e )
    e.printStackTrace();
    responseMessage.append( "ERROR" );
    finally {
    // free up i/o streams and http connection
    try {
    if( hcon != null ) hcon.close();
    if( dis != null ) dis.close();
    if( dos != null ) dos.close();
    } catch ( IOException ioe ) {
    ioe.printStackTrace();
    }//end try/catch
    }//end try/catch/finally
    return responseMessage.toString();
    }//end sendHttpPost( String )
    public void pauseApp() {
    }//end pauseApp()
    public void destroyApp( boolean unconditional ) {
    // help Garbage Collector
    myDisplay = null;
    requestScreen = null;
    requestField = null;
    resultScreen = null;
    resultField = null;
    }//end destroyApp( boolean )
    }//end HttpMidlet

    Modified your code on the line:
    dos.writeByte( request_body );
    to:
    dos.write( request_body );
    and it works with 2 Microsoft IIs servers. I don't know if you ever got this working or if you went to a GET method but we were having major difficulties with IIs servers as well. I figured late was better than never for a response.

  • Parameters into request-uri using POST instead of GET.

    I wrote some servlets that send parameters each other.
    The request came from an HTML form, and I used JavaScript to submit it.
    Example:
    <script language="JavaScript">
    function doMyPost(idparam)
    document.myform.action=document.myform.action+"?id="+idparam;
    document.myform.submit();
    </script>
    <form name="myform" action="myservlet" method="post">
    ... <!-- NO INPUT ELEMENTS -->
    </form>
    In this case the servlet method "myservlet.doPost()" could not find "id" parameter.
    Writing:
    <form name="myform" action="myservlet" method="post">
    <input type="hidden" name="foo" value=""/>
    </form>
    Now the servlet method doPost() found "id".
    I know that a correct submit with "post" and with an input named "id" would not generate errors (my HTML is very unconventional...), but I wrote "myservlet" to accept only post request, and was easy to build a list of anchors (XSL) which call my script with different values of "id" ...
    Why this behaviour? (is due to servlet, or web server Websphere, or browser IE ?).
    I found nothing about this in the HTTP/1.1 specification, but I can't exclude some protocol intervention...
    Bye,
    Mauro

    As I recall, this is in the specification, but it's in the part describing the functionality of a form post.
    When the method is POST, the receiving page reads the information from the form-content only, which has been MIME-encoded and appended to the submission. Any parameters added to the URL do get passed along but they are ignored by the POST processing.
    You'd be better off adding a hidden field to your form:<script>
    function docPost(idparam){
       //document.myform.action=document.myform.action+"?id="+idparam;
       document.myform.id.value = idparam;
       document.myform.submit();
    </script>
    <input type="hidden" name="id" value="">

Maybe you are looking for

  • [CS3][JS] Create Group Prior to its Children

    Hi Is there a way to create group along with all members in one go? What I currently do is: myGroupMembers = [ myBox01, myBox02, myBox03, myBox04 myDoc.groups.add(MyGroupMembers) Obviously, InDesign has to create all group members first and let me st

  • Multi Row Edit Forms in BC4J

    How in BC4J JSP can you create a form to edit multiple records at once? Using JSP/JDBC its fairly straight forward, but in BC4J it doesn't seem obvious. Does anyone have examples? Thanks, Matt

  • LOV With Other

    Jdev version 11.1.6 Creating lov with view accessor and need to add other to the last of list whenever other selected ,value of lov is user entered input value. if lov value is other ,inputtext is visible and value of lov is inputtext value. Regards,

  • Ipod touch 802.1x wifi

    How do you configure the ipod to work with 802.1x wifi. It is suppose to work after the new update but doesn't seem to work.

  • How to download flash player when computer does not have a password?

    I am trying to update flash player on my Mac. I do not have a password for this computer. I have done updates before, and just ignored the box where it asks for password. Now, when I ignore this box, I can't go forward. What can I do?