The application implicit variable is of type javax.servlet.ServletContext, which has the methods- getResource() and getResourceAsStream() to get a resource and getRequestDispatcher() to forward a request.
Although, you can also use 'config' to get ServletContext (and then call the above methods) but it is better to select 'application' because can be used directly.
Found this explaination there itself