/// <summary> /// This method prepares an Html form which holds all data /// in hidden field in the addetion to form submitting script. /// </summary> /// <param name="url">The destination Url to which the post and redirection…
今天遇到这么一个需求,携带一个编号一个名字跳转到另一个JSP页面,直接页面跳转(get携带数据)的话不太安全,于是想到到后台转发一下. 第一种:直接以表单提交方式的进行 JS代码: var form = $("<form action='"+contextPath+"/trainacontentType_forwardToAddTraincontent.action"+"' method='post'></form>")…