The editor of Downcodes will help you understand the difference between Java and Java Web. Java usually refers to Java SE (Standard Edition), which is mainly used to develop desktop applications, but its competitiveness is not outstanding in this field; while Java Web belongs to the category of Java EE (Enterprise Edition) and focuses on developing network applications. This article will delve into the differences between the two and introduce commonly used frameworks, such as the Struts framework and its features, to help you better understand Java and its application in web development.
The difference between Java and Javaweb is that Java generally refers to JavaSE, which is Java Standard Edition, the standard version of Java; JavaWeb has entered the field of JavaEE, which is Java Enterprise Edition, the enterprise version of Java. To develop JavaWeb applications, the entry-level ones are generally Developed with JSP (Java Server Pages) + servlet + Javabean.
Java generally refers to JavaSE, which is Java Standard Edition, the standard version of Java. It is generally used to develop desktop applications, but it has no advantages over VB, Delphi, and VC++ in developing desktop applications.
JavaWeb has entered the field of JavaEE, which is Java Enterprise Edition, the enterprise version of Java. When you look at the web, you should think that it is related to the Internet. In fact, when developing JavaWeb applications, JSP (Java Server Pages) + servlet + Javabean to develop. Large websites are generally developed using frameworks, such as struts, hibernate, and spring. For example, in schools, you will see Login.do in the address bar when logging in, and you will see it after logging in. Requests like Home.do are typical struts framework structures.
JavaEE is a hodgepodge, including Applet, EJB, JDBC, JNDI, Servlet, JSP and other technical standards, running on a complete application server, used to develop large-scale, distributed, robust network applications. JavaWeb mainly refers to the development of dynamic pages based on the Java language and the use of Servlet, JSP and other technologies in JavaEE to facilitate users to interact with the server background through the browser. Java web applications can run in a lightweight web server, such as Tomcat. It can be roughly considered that JavaWeb is a part of JavaEE and is the top site in the process of becoming a JavaEE master. JavaEE refers to a set of specifications, which can also be considered as technologies and frameworks that follow the JavaEE specifications and are implemented using JavaSE.
Further reading:
Struts is not a lightweight framework, but it is not too complex either. When a user uses the Struts framework, an Action (the terminology of a controller in Struts) will be executed, and the interceptors in it will also be called before and after. Interceptors can manage logging, security features, double-submit issues, and more. The official documentation states: "The default interceptor stack is designed to meet the needs of most applications. Different applications do not need to add additional interceptors or change the interceptor stack." This is the result of using the selected view, and this is where the magic lies.
The above is about the difference between Java and Javaweb. I hope it will be helpful to everyone.
I hope that the explanation by the editor of Downcodes can help you clearly distinguish between Java and Java Web, and have a deeper understanding of Java Web development. Learning programming requires continuous effort and practice. I wish you good luck in your studies!