String path = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort();
@SuppressWarnings("unchecked")
Enumeration<String> param = request.getParameterNames();
String strParam = "";
while(param.hasMoreElements()) {
String name = (String)param.nextElement();
String value = request.getParameter(name);
strParam += name + "=" + value + "&";
}
String URL = request.getRequestURI() + "?" + strParam.substring(0, strParam.length() - 1);
'Development > JSP & Servlet' 카테고리의 다른 글
jsp - 스마트폰 인식(모바일 기기 os 검출) (0) | 2013.06.01 |
---|---|
jsp - response.sendRedirect와 request.getRequestDispatcher (0) | 2012.12.24 |
Java EE version history (0) | 2012.11.26 |
jsp - The function size must be used with a prefix when a default namespace is not specified (0) | 2012.11.25 |
jsp - The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved (0) | 2012.11.24 |