请求是http://localhost:8080/index.do,这是我要得到的值。
到ACTION后转发到shouji.jsp,在shouji.jsp里调request.getRequestURL()
取到是的http://localhost:8080/jsp/shouji.jsp。在ACTION里面request.getRequestURL()是可以取得http://localhost:8080/index.do的。
应该是一个request啊,怎么URL不同呢??有什么办法拿到?忽略用JS取,WAP网不支持JS
到ACTION后转发到shouji.jsp,在shouji.jsp里调request.getRequestURL()
取到是的http://localhost:8080/jsp/shouji.jsp。在ACTION里面request.getRequestURL()是可以取得http://localhost:8080/index.do的。
应该是一个request啊,怎么URL不同呢??有什么办法拿到?忽略用JS取,WAP网不支持JS
我理解 用户就是通过request你的shouji.jsp进入的,get出来的当然是他了。在ACTION里面request.getRequestURL()是可以取得http://localhost:8080/index.do的
index.do也是用户的request入口啊。