On 18 juil, 14:44, malrawi <musab.alr...@gmail.com> wrote:
> Hi,
> I am really new to GWT, I tried searching the net for hours to get an
> answer to my problem with no luck. Here is what I am doing:
> I am creating a simple EntryPoint which shows some text fields, when
> the user clicks on a button I want to send a POST request to a php
> page. The PHP page "says" that my request parameters are not set.
> Right before I send the request I display the request data and they
> look right. As the code shows, I am setting the content type, I am
> appending the parameters properly, I don't know what is wrong.
>
> I didn't want to use FormPanel because it seemed like I wouldn't be
> able to send a request asynchronously (correct me if I am wrong, my
> conclusion was based on Javadoc's examples also some examples on the
> net)
>
> Here is the code:
>
> RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url);
> builder.setHeader("Content-type", "application/x-www-form-
> urlencoded");
> StringBuffer requestData = new StringBuffer();
>
> // parameters is a HashMap
> if (parameters != null ){
>         requestData.append("?");

What's this last line for?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to