Is there a way to display the message "File uploaded successfully" on the upload.jsp page? The page retrieves session attributes, checks the user's department, and acknowledges users by displaying the name of their department. When users upload files and the servlet is called in the form action, it inserts data into a database and should show the success message on the same upload.jsp page. However, when I try to use request dispatcher for this purpose, I encounter a null pointer exception. Oddly enough, the code works perfectly fine when redirecting the message to a new jsp page instead. I have experimented with both include and forward methods without success. How can I get the servlet to properly redirect to the same jsp page ("/upload.jsp")? Assistance would be greatly appreciated!