50,541
社区成员
发帖
与我相关
我的任务
分享
protected final void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String method = req.getParameter("method");
if(method!=null){
try {
Method m = this.getClass().getMethod(method, HttpServletRequest.class,HttpServletResponse.class);
m.invoke(this,req,resp);
} catch (SecurityException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
}
}