正在加载图片...
Servlets Java Servlet specification defines an APl for communication between the Web/application server and application program running in the server E.g.,methods to get parameter values from Web forms,and to send HTML text back to client Application program(also called a servlet)is loaded into the server Each request spawns a new thread in the server thread is closed once the request is serviced Programmer creates a class that inherits from HttpServlet And overrides methods doGet,doPost,... Mapping from servlet name (accessible via HTTP),to the servlet class is done in a file web.xml Done automatically by most IDEs when you create a Servlet using the IDE Database System Concepts-7th Edition 9.16 ©Silberscha乜,Korth and SudarshanDatabase System Concepts - 7 9.16 ©Silberschatz, Korth and Sudarshan th Edition Servlets ▪ Java Servlet specification defines an API for communication between the Web/application server and application program running in the server • E.g., methods to get parameter values from Web forms, and to send HTML text back to client ▪ Application program (also called a servlet) is loaded into the server • Each request spawns a new thread in the server ▪ thread is closed once the request is serviced • Programmer creates a class that inherits from HttpServlet ▪ And overrides methods doGet, doPost, … • Mapping from servlet name (accessible via HTTP), to the servlet class is done in a file web.xml ▪ Done automatically by most IDEs when you create a Servlet using the IDE
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有