如有下列代码:
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。