05.JSP2009. 2. 18. 17:36
반응형

<%@ page contentType="text/html; charset=euc-kr"%>
<
%@page import!="java.util.*" %>

<%
request.setCharacterEncoding("euc-kr");

String url = "";
    Enumeration e = request.getParameterNames();  
    while(e.hasMoreElements()){
     String name = (String)e.nextElement();
      if(request.getParameter(name)!=null){
        url += name + "=" + request.getParameter(name) + "&";
      }else{
        url += name + "=" + "" + "&";
      }
    }
out.println(url);   
 %>

Posted by 1010