Tuesday, December 25, 2012

FormPanel HTTP request

Hi,

I use FormPanel in my project and servlet class. So, I want to pass my data (e.g. string from TextBox) to my server-side code in servlet class.

I have this code on clide-side:

final FormPanel form = new FormPanel();
this.initWidget(form);
form.setAction(GWT.getModuleBaseURL()+"greet");

final TextBox tb = new TextBox();
tb.setName("myName");
panel.add(tb);

On the server-side i try to use this code: request.getParameter("myName") but it's return null. Where is the problem?

Thanks

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment