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 =
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:
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
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
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.
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)
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
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
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
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
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:
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
12 matches
Mail list logo