Hi All, somewhere i read to protect jsp's from direct access, we can place them in WEB-INF folder. But what if i want to redirect to a jsp from another jsp in WEB-INF folder.
Unlike forwards (which occur on the server), a redirect is accomplished by sending a 30x response code to the browser along with a 'Location' header. Once received, the browser makes a brand new request for the resource specified in the location header.
So, in short, you can not redirect to a JSP stored under WEB-INF. You would need to either use a forward, or redirect to a controller which uses a forward.