It is not possible to get the name of the JSP file simply because it was compiled at this point, and you are dealing with a compiled version, not the original JSP file.
You can get the name of the JSP class compiled in
pageContext.getPage().getClass().getName();
and try to get the JSP name from it, but the naming scheme is different between the JSP containers.
source
share