Changeset 4838

Show
Ignore:
Timestamp:
06/10/08 10:02:53 (4 months ago)
Author:
magi@…
Message:

Merged [4823] from trunk to 5.2 branch: 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
  • branches/5.2/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java

    r4728 r4838  
    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);