Precautions for javaWeb project development

When a novice is just starting to write a project, there are a few things to note:

One: Create a new web project

Do not rush to click finish during the new creation process, you should click next to generate the xml file

A small tick √ is to be marked here, and then click Finish, as shown in the figure below

2: The placement of the architecture package, the correct path is WebContent->WEB-INF->lib, otherwise the architecture package cannot be used

Three: Where to write java code

——Write in Java Resources->src

4: Front-end and back-end interactions require new servlets to pass values ​​to each other

(The red part is irrelevant to this blog, don’t care, here is to cover unnecessary parts)

Five: servlet related matters

java should be written in the doget method

Six: The road strength submitted by the front end to the back end is as shown below

After the name of the current servlet is modified, the place in the figure will not be modified, here is the manual change

Guess you like

Origin blog.csdn.net/qq_46223960/article/details/108896881