This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See Servlet which controls if all fields are correctelly filled. if not, the Servlet sends the user to the register.jsp again to fill the form again.
The problem is when the Serlvlet makes a RequestDispatcher, all the images, css, en links goes away. The 2nd problem is if I want to submit that form again, the server says that the Servlet does not exists.
Just a hunch about your second problem. When you get a request dispatcher from a servlet context, the pathname that you pass is interpreted as relative to the current context root. Try using getContext() instead, as it is interpreted relative to the server's document root instead. You need to change the "adres" string to represent the correct path to te jsp though.
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
I guess there is a registreren.jsp also present in the path website/servlet That is being called when the request is forwarded from the servlet and when u submit the form again, the path to which it is getting forwarded is as /servlet/servlet/Register and Register.java is not found in the path /servlet/servlet/ So, its giving the error. javax.servlet.ServletException: Class `servlet' was not found in classpath