Home > Back-end >  Tomcat how to create the Servlet?
Tomcat how to create the Servlet?

Time:12-19

CodePudding user response:

Write a JSP page,

CodePudding user response:

Brother, you this reply is too rough

CodePudding user response:

Servlet is oneself write, tomcat was not able to create, can only call, online example a lot of ah, create a class that inherits from HttpSerlet, realize the doget and dopost, then in the web. XML configuration path and class, released into the tomcat

CodePudding user response:

Is to use eclipse development? , if it is, if the environment set up in SRC zhongjian, a servlet class, eclipse has built the servlet file option, (servlet is a Java) and then in the web. In the XML configuration servlet,
  • Related