[英]How to read value in JSP to java servlet
What I did when I was working with jsp and servlets is passing a hidden id inside the form.我在使用 jsp 和 servlets 时所做的是在表单中传递一个隐藏的 ID。
<input type="hidden" name="employeeId" value="// write value here//" />
With this you'll be able to recover it with request.getParam...有了这个,你就可以用 request.getParam 来恢复它...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.