只能将输入框放在form中,按钮用submit,这样就可以在另一个页面取值了 。
或用javascript,可以用value来取你要的值。其他好象不行。

解决方案 »

  1.   

    <form>
       <input type="text" name="text">
       <input type="submit" value="ok">
    </form>
    另一个页
    <% String content=request.getParameter("text");
    %>
      

  2.   

    <script language="JavaScript">
    <% <form name="formname"> %>function passpara(){
      text=window.formname.textname.value();
      formname.submit();
    }
    </script><%
       <input type="text" name="textname">
       <input type="button" onclick="passpara()" value="ok">
    </form>
    %>
    试试,大概就是这样,我没调试,可能有点小语法错误