servlet: page jump
Steps for usage
- Create a web project
- Jump way
- get method
- Adding page content and path index.xml
- Add servlet package in src, adding hellpservlet method inherited from httpservlet, write doget function
- Add two labels servlet in web.xml inside
- servlet, i.e. adding servlet-name and the method name servlet-class i.e. path method (for Methods)
- servlet-mapping, i.e. adding servlet-name and the method name url-partten Page path i.e., a path the same as step
- get method
Similarly to the above method 2.post
1. Modify index.xml
2. Add dopost method