把 url 作为一个参数 post 过去。url:  request.getRequestURL +"?"+request.getQueryString()

解决方案 »

  1.   


    把 url 作为一个参数 post 过去。url: request.getRequestURL() +"?"+request.getQueryString()
      

  2.   

    楼上的,好像不对,如果使用request.getRequestURL() +"?"+request.getQueryString(),得到的只是/do?action=add,而我调用servlet的页面是http://localhost:8080/a.jsp?name=dekn&age=23,我要得到这个URL
      

  3.   

    1、做个<input type=hidden value="旧地址....">2、/do?action=add&oldURL=旧地址...,记得在这里把“旧地址”的内容进行java.net.URLEncode.encode一下,然后再传过去!!!
      

  4.   

    YuLimin的太过技巧性,我试了 jFresH_MaN()(AbsolutelyFresh)(java欣人) 给的方法,无限的爽啊