首页 > 代码库 > 8 - Struts 获取表单信息 (待补充)

8 - Struts 获取表单信息 (待补充)

第一种,利用HttpServletRequest

HttpServletRequest request = ServletActionContext.getRequest();
String username = request.getParameter("username");
String password = request.getParameter("password");

 

8 - Struts 获取表单信息 (待补充)