The briefcase WEB-INF
is protected by containing the settings, classes and libraries of a Java application. It is not allowed to access any resource from this directory via URL for security reasons.
However, it is possible to make a include within the server itself, that is, a JSP accessed outside the folder WEB-INF
can include a JSP from that folder.
It is also possible to forward (forward) one sponse to a JSP within that folder from a Servlet or controller.
And finally, it is possible to read files from that folder using the method ServletContext.getResourceAsStream()
. Example:
servletContext.getResourceAsStream("/WEB-INF/jsp/index/index.jsp");
But usually this is done for configuration files or other static files and not for Jsps.
Stackoverflow works best when questions are self-contained, without links to external sites: http://answall.com/help/mcve. Also remember to tell us what errors you got. " worked out" and "didn’t work out" aren’t precise terms.
– hugomg