- public class ServletName extends HttpServlet {
- public void doPost(HttpServletRequest request, HttpServletResponse response) throws
- ServletException, IOException {
- }
- public void doGet(HttpServletRequest request, HttpServletResponse response) throws
- ServletException, IOException {
- }
- }
复制代码 这样写对吗? |