如有下列代碼:
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException
{
doGet(req, resp);
}
則稱doPost() delegates to doGet()。delegate可以簡單理解爲give power to。
如有下列代碼:
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException
{
doGet(req, resp);
}
則稱doPost() delegates to doGet()。delegate可以簡單理解爲give power to。