Hi, I access a page inside /WEB-INF/ by invoking the struts-logic tag
I put it in /WEB-INF/ folder so it wouldn't be accessible for the user. But I believe I should still be able to go to the page using the <logic:redirect forward="showMenu"/> tag... I am able to go to pages inside /WEB-INF/ directory if I came from an ActionServlet mapping.findForward(). Here is the error message that I get
HTTP Status 404 - /AssetManagementSystem/WEB-INF/cpanel.jsp
logic:forward will work in this case, but logic:redirect will not.
Because this tag causes a request.sendRedirect() to be performed. What this does is send a command back to the browser to go to a different URL. Because the URL you gave is inside WEB-INF, the browser can't access it. A forward, on the other hand, simply passes control to another page without going back to the browser, and therefore is able to access pages inside the WEB-INF directory.