1. I read somewhere on this forum that servlets are no longer being used. Is this true and why?
2. The code will be deleted/messed up each time there is an update to the theme for some reason.
Sergiu Dobozi wrote:1. I read somewhere on this forum that servlets are no longer being used. Is this true and why?
Servlets, however, are still used very widely and are the basis for almost all Java web application frameworks. However, most people don't program directly with servlets - they use one of the more powerful web application frameworks, which runs on top of servlets. For example Spring Web MVC (part of the Spring Framework).
Sergiu Dobozi wrote:2. The code will be deleted/messed up each time there is an update to the theme for some reason.
I have no idea. This has to do with how WordPress works. I've done a little bit of customizing themes with WordPress for my own blog. If you mess with the files of an existing theme, your changes will be overwritten if there is an update to the theme. But you can make a child theme, and then this won't happen. This has however nothing to do with programming in Java, and I am far from a WordPress expert.