Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 299633 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/rwt/widgets/upload/servlet/FileUploadServiceHandler.java (-7 / +8 lines)
Lines 22-28 Link Here
22
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
22
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
23
import org.apache.commons.fileupload.servlet.ServletFileUpload;
23
import org.apache.commons.fileupload.servlet.ServletFileUpload;
24
import org.eclipse.rwt.RWT;
24
import org.eclipse.rwt.RWT;
25
import org.eclipse.rwt.internal.util.URLHelper;
26
import org.eclipse.rwt.service.IServiceHandler;
25
import org.eclipse.rwt.service.IServiceHandler;
27
26
28
27
Lines 236-247 Link Here
236
   * as url parameters. 
235
   * as url parameters. 
237
   */
236
   */
238
  public static String getUrl(final String widgetId) {
237
  public static String getUrl(final String widgetId) {
239
    StringBuffer url = new StringBuffer();
238
    StringBuilder url = new StringBuilder( 256 );
240
    url.append(URLHelper.getURLString(false));
239
    url.append( RWT.getRequest().getContextPath() );
241
240
    url.append( RWT.getRequest().getServletPath() );
242
    URLHelper.appendFirstParam(url, REQUEST_PARAM, getServiceHandlerId());
241
    url.append( "?" );
243
    URLHelper.appendParam(url, REQUEST_WIDGET_ID, widgetId);
242
    url.append( REQUEST_PARAM ).append( "=" ).append( getServiceHandlerId() );
244
243
    url.append( "&" );
244
    url.append( REQUEST_WIDGET_ID ).append( "=" ).append( widgetId );
245
    
245
    return RWT.getResponse().encodeURL(url.toString());
246
    return RWT.getResponse().encodeURL(url.toString());
246
  }
247
  }
247
}
248
}

Return to bug 299633