I am developing a project in jsp with Netbeans (I have already developed several) but in this unlike the previous ones that I have developed I have decided to organize the code much better by classifying it in folders (the jsp files inside the root folder which is the web folder) but when doing this I realize that in this way the servlets are not recognized. I did the test by moving one of those files to the root folder (web) and immediately upon filling out the form, I recognized the servlet. The question is, is there any way to recognize the servlets and continue with the organization of the code? I really do not want to have all the jsp files in the same folder for organizational reasons.