Closed GoogleCodeExporter closed 9 years ago
Hello laurent
I see at least two solutions to your problem, you can put in your interface a
textbox
which can be read when the file input changes (use
`addOnStatusChangedHandler`), then:
- Add this value to the query string
`setServletPath(".../myservlet.upld?userinput=whatever")` and read it in the
server
side with `request.getParameter("userinput")`
- Or add a hidden input to the uploader `add(new Hidden("userinput",
"whatever"))`
which will be available in the server as a element in the `FileItem` collection
About GXT, I think it would be possible to use gwtupload if you are able to
wrap its
widget and implement `IFileInput` which uses `Uploader` but I've not play with
it.
Regards
Manolo
Original comment by manuel.carrasco.m
on 14 Dec 2009 at 1:08
It is not necessary to add anything to the library because the
`uploader.add(Widget)`
method does it.
Thanks
Manuel Carrasco Moñino
Original comment by manuel.carrasco.m
on 16 Dec 2009 at 9:24
Hello manuel.carrasco.m
i added hidden to uploader.add(Widget). but i don't know how take it from
server side.
tell me how to do this . tnx
Original comment by A.nyamda...@gmail.com
on 29 Nov 2010 at 7:51
Hope this helps you
@Override
public String executeAction(HttpServletRequest request, List<FileItem> sessionFiles) throws UploadActionException {
String response = "";
int cont = 0;
for (FileItem item : sessionFiles) {
if (true == item.isFormField()) {
// handle a normal form field
} else {
// handle the file
}
Original comment by manuel.carrasco.m
on 29 Nov 2010 at 1:24
Original issue reported on code.google.com by
laurent....@gmail.com
on 27 Nov 2009 at 10:06