HTML will be preferred over JSP .(If they have same file name) Also extension should not be confused as while script selection Selcetor + extension will be the best match and it will be given priority .So if you are trying localhost//resourcePath/selector1.selector2.extension.Then Script precedence ...
Hi ,You can watch the video here Sling Script Resolution - YouTube In which I have tried explaining how to make use to different script and order of their resolution.Also Please comment your valuable feedback.