-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert,

Robert Harrison wrote:
> CreditCardPaymentAction
>        StringBuffer parms = makeParms(userVO, creditCardForm, props);
>        sendRequest(conn, parms);

> private void sendRequest(HttpURLConnection conn, StringBuffer parms)
>    {
>        DataOutputStream writer;
>        conn.setRequestMethod("POST");
>        conn.setRequestProperty
> ("Content-Type","application/x-www-form-urlencoded");
>        writer = new DataOutputStream(conn.getOutputStream());
>        writer.writeBytes(parms.toString());
>        writer.flush();
>        writer.close();
>    }

It would seem that you haven't provided the code to the "makeParms"
method, which could be the source of your problem. Note that you ought
to include ";charset=[your character set]" after your content type's
mime type, just to be explicit about what you are sending to the remote
host.

> CreateUserAction
>        String xid = request.getParameter("xid");
>        String s = request.getQueryString();
>        System.out.println("The Query String is >>>>>" + s);
> 
>        BufferedReader in = new BufferedReader(request.getReader());

Using request.getParameter and request.getReader (or
request.getInputStream) rarely work well together, since
request.getParameter requires parsing the input stream to get POST
parameters. My guess is that you are not sending a correct POST body,
and you parameters aren't being read by request.getParameter. But, that
request body is still available for reading by this code:

>        String decodedString;
>            while ((decodedString = in.readLine()) != null) {
>                System.out.println(decodedString);
>            }

So, what does your POST request look like, then?

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUk9E9CaO5/Lv0PARAi/uAJ4jlNPZTqMtStVKoijquNg2qXGikQCgsuwy
lQfLBTPq8v0B9pFRp8FLHfk=
=tcQB
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to