0

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.

  • The 1st dupe explains the JSF approach and the 2nd dupe explains the "plain vanilla" JSP/Servlet approach. – BalusC Dec 21 '21 at 10:24

1 Answers1

0

You can use context path.

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

Amir M
  • 354
  • 4
  • 16