Method for deploying Servlet and JSP 1> Using the J2EE / Home / Default-web-app directory to place all servlets in the J2EE / Home / Default-web-app / web-inf / class directory: http: // : 8888 / servlet / For example: put servlet class my.helloservlet in J2EE / Home / Default-web-app / web-inf / class / my / helloservlet.class can be accessed: http : // : 8888 / servlet / my.helloservlet
Put all JSP in the J2EE / Home / Default-web-app directory can be accessed: http: // : 8888 / For example: put hello.jsp placed in J2EE / Home / Default-web-app / example / hello.jsp can access: http: // : 8888 / example / hello.jsp