The children's art training and teaching website written in Java web has perfect functions and complete source code

Today I will continue to introduce the Java web project to you. Today I will introduce a children's art training and teaching website written in Java web. There are three types of users in the children's art training and teaching website: tourists, students, and system administrators. Tourists mainly browse news announcements, teacher and course information; students modify their own information, register for related courses, and view orders; system administrators mainly perform daily maintenance work: mainly including user management, teacher management, news announcement management, course management, etc. At present, the system functions are very comprehensive and will be further improved in the future. The interface of the whole system is beautiful, with complete source code, I hope everyone can like it. Help like and follow. Program together, progress together

development environment

  The development language is Java, and the development environment is Eclipse or IDEA. Database used: MySQL.

This project is a Web application development based on MVC's JSP technology, in which

  • JSP technology is the presentation layer, including EL expression, JSP action, JSTL standard tag technology
  • Servlet is the control layer technology
  • JavaBean is the development model layer
  • Use the MVC design pattern to develop each module
  • The database uses mysql database
  • Using Tomcat as a Web server
  • Firefox browser, 360 browser, Chrome browser, IE browser as the running browser of this program

Main functions of the system

   Background of the project

      Feelings come from the tempering of art, and the spirit of innovation comes from respect and love for individuality, and these should be
the seeds sown in the early childhood. Since ancient times, art, as the expression of life, has always
been known as an effective means of education. Confucius, as a great educator who is a "teacher of all ages",
"playing in art" is his important educational proposition. Art education is conducive to the cultivation of children's positive feelings and attitudes, the development of children's imagination and innovative ideas, and the cultivation of children's subjective quality and innovative spirit. In particular, art education focuses on the development of children's personality and creative potential, which is the most valuable contribution to human development
.

  The main function 

   There are three types of users in the children's art training and teaching website: tourists, students, and system administrators. Tourists mainly browse news announcements, teachers and course information; students modify their own information, register for related courses, and view orders; system administrators mainly perform daily maintenance work: mainly including user management, teacher management, news announcement management, course management, etc. The functional module diagram is as follows:

 Environment configuration

      hardware environment

           Ordinary PC will do

     Software Environment:

          Operating system: window operating system, unix operating system, linux operating system

         Server: Tomcat version, versions above 7 are all available

        Browser: No special requirements, all browsers are fine. Such as firefox browser, chrome browser

        Database: MySQL, versions above 5.5 are all available

running result

1 Home

2 user login

3 User registration

4 Teacher inquiries

 5 Course Inquiry

6 Administrator login

 7 User Management

8 Institutional Management

9 Teacher Management

10 Course Management

key code

public class EncodingFilter implements Filter {
	protected String encoding = null;

	protected FilterConfig filterConfig = null;

	public void destroy() {
		this.encoding = null;
		this.filterConfig = null;
	}

	public void doFilter(ServletRequest request, ServletResponse response,
			FilterChain chain) throws IOException, ServletException {
		
		String encoding = selectEncoding(request);
		if (encoding != null) {
			request.setCharacterEncoding(encoding);
			response.setCharacterEncoding(encoding);
		}
		
		chain.doFilter(request, response);
	}

	public void init(FilterConfig filterConfig) throws ServletException {
		this.filterConfig = filterConfig;
		this.encoding = filterConfig.getInitParameter("encoding");
	}

	protected String selectEncoding(ServletRequest request) {
		return (this.encoding);
	}
}

project summary

(1) Before writing the code, the thinking must be clear in the brain, not vague, must draw the function diagram and flow chart, and then implement each function block according to it, analyze more, and cultivate a good logical thinking ability.

(2) In the process of writing code, the principle of proximity must be adopted. Generally, the same function or the settings for the same component should be written together, so that the program written in this way is clearer, less prone to errors, and easier to find.

(3) To develop good commenting habits, first, it is beneficial for others to read your program, and it is also beneficial for yourself to read it later, so that you can quickly understand the program and improve efficiency.

(4) Modularize the function, that is, encapsulate the code segment that implements the same function into a class or a method, and call it when it is implemented, which can improve the readability of the code

(5) Create packages to store classes with different functions to make the system structure more modular and standardized.

(6) When writing code, you must debug while writing, set breakpoints in a timely manner, or output the value of some variables to the console, and observe and analyze the value of variables to facilitate the judgment of the problem.

Guess you like

Origin blog.csdn.net/bangxiecode/article/details/131385656