I've a fileupload that works fine. But I need to add additional
information to the data that is being uploaded. I have a string object
that also must be sent to the server.
So I tried this here:

client side:

FormPanel form = new FormPanel();
...
uploadPanel.add( new HTML("<input type=\"hidden\" name=
\"userIdentification\" value=\"" + userIdentification + "\" />") );
...
form.setEncoding( FormPanel.ENCODING_MULTIPART );
form.setMethod( FormPanel.METHOD_POST);
form.setAction( GWT.getHostPageBaseURL() + "FileUploadHandler");
form.setWidget( uploadPanel );

But I can't access the fieldname "userIdentification" on the server
side. I.e.
server side:

Enumeration names = request.getParameterNames();
while( names.hasMoreElements() ) {
        String name = (String) names.nextElement();
        System.out.println( name + " --> " +
request.getParameterValues( name )[0] );
}

Acutally the names object does not contain anything.
How do I get the userIdentification?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to