[JSP] forward 페이지를 만들어야 할경우~
아래 jsp 파일 참고하세요.
첨부된 jsp 파일 을 사용법
http://localhsot:8080/forward.jsp?_forWard_Url=/test/test.jsp
라고 할경우 이전페이지에서 가지고있던 파라미터 값을 모두 가지고 test/test.jsp 페이지로 이동 시킨다.
소스~
public String getRequestToHiddenTag()
{
Enumeration e = req.getParameterNames();
String key = "";
String requestInfo = "";
while( e.hasMoreElements() )
{
key = (String)e.nextElement();
String[] value = req.getParameterValues( key );
for( int i = 0; i < value.length; i++ )
{
requestInfo += "<input type=\"hidden\" name=\"" + StringUtil.convertCharToAscii( key ) + "\" id=\"" + StringUtil.convertCharToAscii( key )
+ "\" value=\"" + StringUtil.convertCharToAscii( value[i] ) + "\">\n";
}
}
return requestInfo;
}