Java Servletã§ç¾å¨ã¢ã¯ã»ã¹ããã¦ãããã¼ã¸ã®URLããã©ã¡ã¼ã¿ä»ãã§åå¾ããæ¹æ³ãã¡ã¢ãã¦ããã¾ãã ããã§è¨ã£ã¦ãããã©ã¡ã¼ã¿ã£ã¦ããã®ã¯ãGETã¡ã½ããã§æ¸¡ãããCGIå¼æ°ã®ãã¨ã§ã?ã®å¾ãã«hoge=pageã¿ããã«ãã£ã¤ãã¦ããå¤ã§ããQUERY_STRINGç°å¢å¤æ°ã®ä¸èº«ã§ããã ãã©ã¡ã¼ã¿ç¡ãã§åå¾ããå ´åã«ã¯æ¬¡ã®ãããªæãã§è¡ãã¾ãã StringBuffer url = request.getRequestURL(); ãã©ã¡ã¼ã¿ä»ãã§åå¾ããå ´åã«ã¯æ¬¡ã®ãããªæãã«ã¡ãã£ã¨å°ç´°å·¥ãå¿ è¦ã¿ããã§ãã StringBuffer url = request.getRequestURL(); url.append("?").append(request.getQueryString()); ããã¾ãçµæ§é »ç¹ã«ä½¿ããã¨ãããã®ã§ã¡ã¢ãã¦ããã¾ãã ã«ãã´ãªã¼: æè¡ã¡ã¢
{{#tags}}- {{label}}
{{/tags}}