Changeset 4823

Show
Ignore:
Timestamp:
06/10/08 07:25:04 (6 months ago)
Author:
marc.englund@…
Message:

Application runner was not adding a trailing slash to the applicationUrl, and thus getURL() returned invalid url. Fixed, fixes #1659

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java

    r4720 r4823  
    13121312            if (isApplicationRunnerServlet) { 
    13131313                final String[] URIparts = getApplicationRunnerURIs(request); 
    1314                 servletPath = URIparts[1]; 
     1314                servletPath = URIparts[1] + "/"; 
    13151315            } else { 
    13161316                servletPath = request.getContextPath() 
     
    13651365            final String applicationClassname = URIparts[4]; 
    13661366            applicationUrl = new URL(getApplicationUrl(request).toString() 
    1367                     + applicationClassname); 
     1367                    + applicationClassname + "/"); 
    13681368            try { 
    13691369                applicationClass = classLoader.loadClass(applicationClassname);