Sorry if the title isn\'t clear but I don\'t know the correct terminology, so basically what is the difference between this:
doSomething(servletPath, function