如何将参数添加到我的Java Servlet的现有HttpServletRequest中?
2022-09-01 19:12:11
我想添加一个新参数到我的参数映射。HttpServletRequest
下面的代码
request().getParameterMap().put("j_username", user);
request().getParameterMap().put("j_password", pwd);
创建此错误
no modifications are allowed to a locked parameter map
正确的方法是什么?