└── jaws ├── .gitignore ├── src └── main │ ├── resources │ ├── my.jsp │ ├── index.html │ └── WEB-INF │ │ └── web.xml │ └── java │ └── com │ └── github │ └── download │ └── jaws │ └── http │ └── Servlet.java └── pom.xml /jaws/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | .settings/ 3 | .classpath 4 | .project 5 | -------------------------------------------------------------------------------- /jaws/src/main/resources/my.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | MyJSP 4 | 5 | 6 | Today is: <%= new java.util.Date().toString() %> 7 | 8 | -------------------------------------------------------------------------------- /jaws/src/main/resources/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | My Page 4 | 5 | 6 | 7 | My Servlet 8 | My JSP 9 | 10 | 11 | -------------------------------------------------------------------------------- /jaws/src/main/java/com/github/download/jaws/http/Servlet.java: -------------------------------------------------------------------------------- 1 | package com.github.download.jaws.http; 2 | 3 | import java.io.IOException; 4 | 5 | import javax.servlet.ServletException; 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | public class Servlet extends HttpServlet { 11 | private static final long serialVersionUID = 1L; 12 | 13 | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 14 | // your logic here 15 | } 16 | 17 | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 18 | // your logic here 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /jaws/src/main/resources/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | index.html 9 | 10 | 11 | 12 | Servlet 13 | com.github.download.jaws.http.Servlet 14 | 15 | 16 | 17 | MyServlet 18 | /jaws.do 19 | 20 | 21 | -------------------------------------------------------------------------------- /jaws/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 4.0.0 6 | 7 | com.github.download 8 | jaws 9 | 0.0.1-SNAPSHOT 10 | bundle 11 | 12 | jaws 13 | jaws web bundle 14 | 15 | 16 | 2.3.6 17 | 2.5 18 | 19 | 20 | 21 | 22 | javax.servlet 23 | servlet-api 24 | ${servlet-api.version} 25 | 26 | 27 | 28 | 29 | 30 | 31 | org.apache.felix 32 | maven-bundle-plugin 33 | ${maven-bundle-plugin.version} 34 | true 35 | 36 | ${project.artifactId} 37 | ${project.version} 38 | 39 | * 40 | 41 | jaws 42 | jaws 43 | 44 | 45 | 46 | 47 | 48 | --------------------------------------------------------------------------------