MMMHUHU
<form><input type="hidden" name="hidden" id="hidden" value=""><input type="text" name="username" id="username"></form><script type="text/javascript">document.getElementById("hidden").value = document.getElementById("username").value</script>在提交页面可以接受文本框的内容输出<%String s = request.getParameter("hidden");System.out.println(s);%>