<form name="formApply" method="post" action="indexselect.jsp">
<input type=hidden name="CODE" value="<%= CODE %>">
<input type=hidden name="apply_flag" value="1">
<input type=hidden name="table_pageno" value="<%= table_pageno %>">
<input type=hidden name="table_id" value="<%= table_id %>">
<input type=hidden name="candidate_pageno" value="<%= candidate_pageno %>">
<input type=hidden name="current_pageno" value="<%= current_pageno %>">
</form>
<script>
formApply.submit();
</script>

解决方案 »

  1.   

    <script>
    function dosubmit(){
    alert(formApply.code.value);
    }
    </script>
      

  2.   

    完全拷贝?当然不行了。唉,传参数的方法很多,说说你的具体需求吧。不行,把你的代码贴出来,到底传什么?试试下面的,formApply是jsp页面中form的名字,code是formApply中的一个element
    <script>
    function dosubmit(){
    alert(formApply.code.value);
    }
    </script>
      

  3.   

    <%
    String action="";
    try{
    action=request.getParameter("action");
    }catch (Exception e){
    }
    if(action!=null){
    if(action.equals("confirm")){
             string ddd=request.getParameter("ddd");
          }
    }
    %>
    <form method="post" action="leavemessage.jsp" name="leavemessage" onsubmit="" > 
    <input type=hidden value="confirm" name='action'>
                               <input type=hidden value="confirm" name='ddd'></form>
    这样就能在一个也面里获得参数值了
      

  4.   

    leavemessage.jsp就是你这个程序本身
      

  5.   

    flyingadam(蜘蛛侠) 
    很热心
    鼓励