Re: how to send variables in form panel

2009-10-26 Thread Davis Ford
You have to set the name of the textbox otherwise it won't be addressable on the server side. Example: private final FormPanel formPanel = new FormPanel(); private final FileUpload fileUpload = new FileUpload(); private final TextBox textBox = new TextBox(); private final Button uploadButton =

Re: how to send variables in form panel

2009-10-25 Thread QBox
So in any way you will send multipart message to the server. The multipart message have same structure like normal message request. Have header and body. The key difference is the body structure. The body contain more then one message in his structure. Example: MIME-Version: 1.0 Content-Type:

Re: how to send variables in form panel

2009-10-23 Thread YoeZ
yes, of course I put the multipart in client code: form.setAction(GWT.getModuleBaseURL() + uploadfileservlet); form.setEncoding(FormPanel.ENCODING_MULTIPART); form.setMethod(FormPanel.METHOD_POST); I have a form with uploadfile widget, and some textbox. the uploaded file was

Re: how to send variables in form panel

2009-10-22 Thread Lazo Apostolovski
Its probably a multipart message :S Try googling for how to accept multipart message on the server side here is some example but i don't know if you find usefull. public HashMapString, InputStream parseMultipartMessage( HttpServletRequest request) { mapWithStreams = new

Re: how to send variables in form panel

2009-10-22 Thread Sudeep S
multipart requests have to be sent via a FORM panel On Thu, Oct 22, 2009 at 6:53 PM, Lazo Apostolovski qbox2...@gmail.comwrote: Its probably a multipart message :S Try googling for how to accept multipart message on the server side here is some example but i don't know if you find usefull.

Re: how to send variables in form panel

2009-10-21 Thread YoeZ
Hey abhiram, I still have a problem in server side,, can you tell me how to catch variable from client. Let say I have a textbox in client. Textbox txtComment = new Textbox; txtComment.setName(txtComment); txtComment .setText(hello); in server side: I've tried: String varXXX = (String)

Re: how to send variables in form panel

2009-10-20 Thread Manuel Carrasco Moñino
Maybe this example project (http://code.google.com/p/gwtupload/source/browse/#svn/trunk/SendMailSample) which uses gwtupload library helps you. Manolo On Mon, Oct 19, 2009 at 2:42 PM, YoeZ juz...@gmail.com wrote: thanks ian,, but i'm using GWT and tried to uploadfile which is must using

Re: how to send variables in form panel

2009-10-20 Thread abhiram wuntakal
Hey Yoez, Not sure if it helps. But i have a workaround solution for this. Make it a two-step process. First use a RemoteServiceServlet to pass across your variables to the server side and then save these values into some variables on the server side. Then you can use a HTTPServlet to pass

Re: how to send variables in form panel

2009-10-19 Thread YoeZ
hello... please help On Oct 18, 12:31 am, YoeZ juz...@gmail.com wrote: Hi. I have 1 form panel with some textboxes and file upload. the question is, how to get variables from client/form panel in servlet? i created DTO/Pojo object to hold variables in client, but i donk know how to catch

Re: how to send variables in form panel

2009-10-19 Thread Ian Bambury
You'll stand more chance of an answer if you ask that question in a Java forum. This is a GWT group. Ian http://examples.roughian.com 2009/10/19 YoeZ juz...@gmail.com hello... please help On Oct 18, 12:31 am, YoeZ juz...@gmail.com wrote: Hi. I have 1 form panel with some textboxes

Re: how to send variables in form panel

2009-10-19 Thread YoeZ
thanks ian,, but i'm using GWT and tried to uploadfile which is must using FormPanel. I have successfully upload my file to server with UploadFile widget, but I have another textboxes too. and dunno how to catch inside FormPanel. On Oct 19, 7:15 pm, Ian Bambury ianbamb...@gmail.com wrote:

how to send variables in form panel

2009-10-17 Thread YoeZ
Hi. I have 1 form panel with some textboxes and file upload. the question is, how to get variables from client/form panel in servlet? i created DTO/Pojo object to hold variables in client, but i donk know how to catch in servlet.. please help thanks