I’m new to JSP and netbeans, I’m trying to make a simple communication between index.jsp to 02.jsp. I created both of them under WEB-INF folder. After I built the 02.jsp file, (under /WEB-INF), How do I add it to /web/build/ folder? Because Glassfish seems to always check that folder for servlets. Do I always have to manually move them over?
Thanks.
Files in
/WEB-INF(and/META-INF) are not publicly accessible. You don’t want that the enduser can view for exampleweb.xml, do you? Only servlets (such as in MVC frameworks) are able to forward requests to there byRequestDispatcher(see for an example als our Servlets wiki page)Put files which need to be publicly accessible outside
/WEB-INFfolder.