How to generate a link in JSP to JSP file located into WEB-INF folder

480 Views Asked by At

I did : /WEB-INF/index.jsp. Into index.jsp, I have a links to another .jsp's files like about.jsp ...etc But how to generate this link ? href="about.jsp" doesn't work, it is normal because folder WEB-INF is protected by tomcat.

1

There are 1 best solutions below

1
Amir M On

You can use context path.

You link will be like href=${pageContext.request.contextPath}/about.jsp.