我想在我的表单面板上传递一个字符串参数。是否可以在 GWT 表单面板上添加字符串参数数据?
我有 servlet 代码将使用 post 接收传递的字符串参数,我不能在链接中包含参数,因为它有大量数据
这是我的 servlet 代码:
public void doPost(HttpServletRequest request, HttpServletResponse response) {
String printMode = request.getParameter("printMode");
String nodeNm = ConfigConstants.PRINTER.getValue();
String outputLogPath=SrchSvcImpl.cnfg.readValCnfg(nodeNm, ConfigConstants.OUTPUT_ERROR_LOG.getValue());
if(printMode.equalsIgnoreCase("single_print")) {
String role = request.getParameter("role");
String itemsToPrint = request.getParameter("itemsToPrint");
//do something else..
}
}