请高手指教:
    如何在JSP页面中得到客户端发出请求的URL值?

解决方案 »

  1.   

    request.getRequestURL().toString()
    request.getServletPath()
      

  2.   

    <%
    String xxx = request.getParameter("xxx");
    if (xxx!= null && !xxx.equals("")){
    try {
    xxx= new String(xxx.trim().getBytes("ISO8859-1"));
    } catch (Exception e) {
    e.printStackTrace();
    }
    }
    %>
    在同一个jsp里<input  value="<%=xxx%>" />
      

  3.   

    to Rain_Wang(阿伦):代码String xxx = request.getParameter("xxx");中的“XXX”是代表什么意思呀?你能告诉我吗?