I have a client-side GWT-FormPanel, which has an import file functionality. I want to pass cookie along with the form to the action on the server-side.
I tried this method: Passing parameters along with a multipart/form-data upload form (Java Http Post Upload)
I tried adding a hidden variable as well. But it does not seem to work with ENCODING_MULTIPART
.
However I am concerned I have to pass multiple variables, is this method to go about the problem?
final FormPanel form = new FormPanel();
form.setAction("./abc/sheets/importReport");
form.setMethod(FormPanel.METHOD_POST);
form.setEncoding(FormPanel.ENCODING_MULTIPART);
Is there any other method to pass parameters from the client to the server in the Http request?
Can anyone help me out? Thanks in Advance.