Created
October 27, 2011 19:51
-
-
Save ejknapp/1320670 to your computer and use it in GitHub Desktop.
SuperAbbrevs servlet template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package java112.$1; | |
import java.io.*; | |
import java.util.*; | |
import javax.servlet.*; | |
import javax.servlet.http.*; | |
import javax.servlet.annotation.*; | |
/** | |
* @author <#=AUTHOR#> | |
* class $2 | |
* | |
*/ | |
@WebServlet(name = "$3", urlPatterns = { "/$4" }) | |
public class ${2:name} extends HttpServlet { | |
public void init() throws ServletException { | |
// Initialization code | |
} | |
/** | |
* Handles HTTP GET requests. | |
* | |
*@param request the HttpServletRequest object | |
*@param response the HttpServletResponse object | |
*@exception ServletException if there is a Servlet failure | |
*@exception IOException if there is an IO failure | |
*/ | |
public void doGet(HttpServletRequest request, HttpServletResponse response) | |
throws ServletException, IOException { | |
$end | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment