jsp 页面里
out.println("<td BGCOLOR=\"#00FF00\"><b><a href=user.do?act=2&sort=Score>Score</b></td>");能否把 <a href=user.do?act=2&sort=Score>
做成能submit 提交当前页面的文本数据 等数据的方法
如果能做 如何写?

解决方案 »

  1.   

    <a href="javascript:doSub();"> 提交</a><script>
      function doSub(){
         this.action = "user.do?act=2&sort=Score";
         this.submit();
      }
    </script>
      

  2.   

    <a href="javascript:doSubmit();"> 提交 </a><script>
      function doSubmit(){
        this.action = "user.do?act=2&sort=Score";
        this.target = "aniframe";
        this.method = "get"
        this.submit();
      }
    </script> 
    <iframe name="aniframe" style="display:none"/>   //这个放在<body></body>里面。
      

  3.   

    <a href="javascript:doSubmit();"> 提交 </a> <script> 
      function doSubmit(){ 
        this.action = "user.do?act=2&sort=Score"; 
        this.target = "aniframe"; 
        this.method = "get" 
        this.submit(); 
      } 
    </script> 
    <iframe name
    提示错误 error:object doesnt' support this property or methodurl......
      

  4.   

    很奇怪《a href 
    submit 提交后
    不恩在 acton里面 request.getparameter("startdate")
    得到空值  ----  奇怪 ,button的onlick是可以的 
      

  5.   

     function doSubmit(){ 
        this.action = "user.do?act=2&sort=Score"; 
        
        form1.submit();