Search code examples
javaeclipsejsptomcatweb-inf

local tomcat with eclipse attempt to run jsp


I have local tomcat running. I have eclipse loading contexts to this tomcat instance.

I have a jsp under webappl, which I redirect to in servlet, and which I can access at :8080/mywebapp/my.jsp.

If I create a directory under webappl/alljsps , and move my.jsp to this location webappl/alljsps/my.jsp, I can not redirect, and I can not access at :8080/mywebapp/alljsps/my.jsp.

What steps are required to access this moved jsp?


Solution

  • You can only access jsps under WEB-INF if you redirect to them through a servlet. Nothing on WEB-INF can be accessed directly.