First is Java basic Java SE ( for developing and deploying Java applications in desktops, servers, and embedded devices and live environments.) )
Then Java EE(Java Enterprise Standard development), first learn the servlet(Controller), JSP(in HTML through Java output values), and then learn struts, Hibernate, Spring and other frameworks.
Java SE is the foundation of Java EE, and Servlet and JSP are the foundation of the framework.
Database, learn Oracle,mysql,ms SQL, you can, as long as learn one, and then learn the others will find very similar.
The other is HTML(text interpretation language), CSS(style), JavaScript(Java Web scripting language), XML(Extensible Markup Language, more for program configuration files), These are the things that Java Web programming needs to use.
Recommended Learning sequence:
1, Html,css,javascript,xml
2, Java SE3, Java EE, including Servlet, JSP, Framework (Struts, Hibernate, Spring)
As for the study of database, before Java, before, after all can be recommended in Java, at least before Java EE.
The above is a rough way to learn the Java route is a small series to share all the content, hope to give you a reference, but also hope that we support the cloud-dwelling community.