Servlet technology is initially intended to provide the Web developers with a simple, consistent mechanism for extending the functionality of a Web server, which is built on top of Hypertext Transfer Protocol. This report extends the idea of servlet to another popular communication protocol in the Internet community, File Transfer Protocol. A FtpServlet API package, which is similar to the well-known HttpServlet package, is defined. A container that is able to accommodate FtpServlets is implemented to demonstrate the feasibility of FtpServlet package. Several samples of FtpServlets are provided to show how to use the package and its flexibility. Future improvement plans to consolidate the FtpServlet package are also discussed in order to make full use of the package.